https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65127
Bug ID: 65127 Summary: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'addr_expr' in parsing_nsdmi, at cp/parser.c:18311 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lukeallardyce at gmail dot com void make_item() { static int i{100}; struct { int id{i++}; } item; } int main() { make_item<0>(); } ------ g++ -std=c++11 bug.cpp -c bug.cpp: In instantiation of 'void make_item() [with int sz = 0]': bug.cpp:14:16: required from here bug.cpp:9:5: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'addr_expr' in parsing_nsdmi, at cp/parser.c:18311 } item; ^ bug.cpp:9:5: internal compiler error: Abort trap: 6 g++: internal compiler error: Abort trap: 6 (program cc1plus) GCC built from trunk on 2/16