https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65127
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-02-20 CC| |mpolacek at gcc dot gnu.org Target Milestone|--- |5.0 Summary|internal compiler error: |[5 Regression] internal |tree check: expected tree |compiler error: tree check: |that contains 'decl |expected tree that contains |minimal' structure, have |'decl minimal' structure, |'addr_expr' in |have 'addr_expr' in |parsing_nsdmi, at |parsing_nsdmi, at |cp/parser.c:18311 |cp/parser.c:18311 Ever confirmed|0 |1 --- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Started with r216750. Note that we ICE even on template<int sz> void make_item() { static int i{100}; struct { int id{i++}; } item; } int main() { make_item<0>(); } which is accepted by 4.9 and clang.