[Issue 8627] New: Internal error: ../ztc/cgcs.c 343

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 7 01:43:44 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8627

           Summary: Internal error: ../ztc/cgcs.c 343
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: blooh_ at hotmail.com


--- Comment #0 from Christopher Crouzet <blooh_ at hotmail.com> 2012-09-07 01:44:05 PDT ---
The code below errors with an internal error:


// ------------------------------
import std.stdio;

class Test
{
public:  
  auto whatever()
  {
    float[1] tmp;
    return tmp;
  }
}

void main()
{
  auto test = new Test;
  writeln( test.whatever()[0] );
}
// ------------------------------


This looks quite simple, hopefully I'm not doing anything wrong?
It's working when I initialize tmp with a size of at least 3 elements.


Cheers,
Christopher.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list