[Bug c++/95956] ICE in check_bases, at cp/class.c:1689

haoxintu at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 3 03:36:51 GMT 2020


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

W E Brown <webrown.cpp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webrown.cpp at gmail dot com

--- Comment #1 from Haoxin Tu <haoxintu at gmail dot com> ---
Add a more readable case.

$cat p.cc
int a ( auto struct : decltype ( auto ) {{}}){}


$g++ -w p.cc
p.cc:1:41: error: types may not be defined in parameter types
    1 | int a ( auto struct : decltype ( auto ) {{}}){}
      |                                         ^
p.cc:1:42: error: expected unqualified-id before ‘{’ token
    1 | int a ( auto struct : decltype ( auto ) {{}}){}
      |                                          ^
p.cc:1:21: internal compiler error: in check_bases, at cp/class.c:1689
    1 | int a ( auto struct : decltype ( auto ) {{}}){}
      |                     ^
0x658963 check_bases
        ../../gcc/cp/class.c:1689
0x658963 check_bases_and_members
        ../../gcc/cp/class.c:5900


More information about the Gcc-bugs mailing list