[Bug c++/77791] ICE on invalid C++11 code with redefined function parameter: tree check: expected tree that contains ‘decl minimal’ structure, have ‘error_mark’ in cp_parser_lambda_declarator_opt, at cp/parser.c:1011

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 29 12:02:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77791

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-09-29
                 CC|                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.7.0

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, however it fails for releases from 4.7.0 with:

pr77791.cpp:1:29: error: redefinition of ‘int i’
pr77791.cpp:1:18: error: ‘int i’ previously declared here
pr77791.cpp:1:29: internal compiler error: tree check: expected tree that
contains ‘decl minimal’ structure, have ‘error_mark’ in
cp_parser_lambda_declarator_opt, at cp/parser.c:8364


More information about the Gcc-bugs mailing list