Bug 175 – ice while building aaA.d with enable checking

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2006-06-06T01:05:00Z
Last change time
2015-06-09T05:14:47Z
Keywords
ice-on-valid-code
Assigned to
braddr
Creator
braddr

Comments

Comment #0 by braddr — 2006-06-06T01:05:37Z
../../../gcc-4.0.2/libphobos/internal/aaA.d: In function '_aaValues': ../../../gcc-4.0.2/libphobos/internal/aaA.d:497: internal compiler error: tree check: expected parm_decl, have var_decl in get_chain_decl, at tree-nested.c:321 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. This is with sf svn rev 5. I'll produce a reduced test case asap.
Comment #1 by braddr — 2006-06-06T01:22:21Z
The reduced test case: 1 struct Array { int i; } 2 Array _aaValues() { 3 Array a; 4 void _aaValues_x() { } 5 return a; 6 } The line number is now line 5. Removing line 4 makes the error go away.
Comment #2 by dvdfrdmn — 2006-06-08T22:17:14Z
Fixed in svn. GCC 4.0.x patch must be re-applied.
Comment #3 by thomas-dloop — 2006-12-30T20:10:43Z