Don <> changed:

           What    |Removed                     |Added
                 CC|                            |
            Version|D1 & D2                     |D2
            Summary|segfault in Lexer::uniqueId |Stack overflow with struct
                   |                            |destructor as default
                   |                            |parameter

--- Comment #1 from Don <> 2011-09-19 02:10:40 PDT ---
It's not a segfault, and it has nothing to do with Lexer::uniqueId.
It's a stack overflow. It's also D2-only, because it requires a struct

StructLiteralExp::semantic() sees that Eins has a destructor, so it rewrites it
Eins devices = (Eins tmp = Eins(), tmp);
Then, it runs semantic on the comma expression it created.
VarDeclaration::semantic on tmp calls StructLiteralExp::semantic, which again
sees Eins has destructor, so it does an another rewrite.
Eins devices = (Eins tmp = (Eins tmp2 = Eins(), tmp2), tmp);

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to