https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82780
Bug ID: 82780 Summary: [8 Regression] ICE on compiling Boost Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sgunderson at bigfoot dot com Target Milestone: --- Hi, Reduced test case below. Regression happens when compiling a part of MySQL which uses Boost (1.65.0); original code was valid but reduced case is not. (Reduction also independently found #82050.) GCC 7 does not complain. gcc version 8.0.0 20171017 (experimental) [trunk revision 253812] (Debian 20171017-1) atum17:~> cat ~/reduce2/tmp.i class a { } template <b> class c { c(c &&e) : (static_cast a && e.d; a d atum17:~> /usr/lib/gcc-snapshot/bin/g++ -c ~/reduce2/tmp.i [...] /srv/sesse/reduce2/tmp.i:2:72: internal compiler error: tree check: expected tree that contains 'decl common' structure, have 'identifier_node' in get_inner_reference, at expr.c:6999 } template <b> class c { c(c &&e) : (static_cast a && e.d; a d ^