www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6945] New: [ICE](expression.c line 1853) arrays of missing symbols

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6945

           Summary: [ICE](expression.c line 1853) arrays of missing
                    symbols
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



A wrong program (it misses a like where A and B enums are defined):


enum uint foo = A | B;
enum uint[] bar = [foo];
void main() {}


DMD 2.057head gives:

Assertion failure: '0' on line 1853 in file 'expression.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 13 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6945


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
                 CC|                            |yebblies gmail.com



foo's initializer is evaluated once with errors gagged for the foo declaration,
then again when it's used in bar's declaration.  The type ends up full of
errors, but the error count is never incremented.

I don't really understand why it's doing this, and the correct place to run (or
re-run) semantic ungagged is unclear.  The comment at 1411 in declaration.c
doesn't really help, and the code is ancient.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 12 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6945


SomeDude <lovelydear mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear mailmetrash.com



PDT ---
This one gives correct compilation messages on 2.059:

PS E:\DigitalMars\dmd2\samples> rdmd bug
bug.d(1): Error: undefined identifier A
bug.d(1): Error: undefined identifier B

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