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

--- Comment #5 from G. Steinmetz <gs...@t-online.de> ---

ICE is reproducible with e.g. -march=nano-x2 or -march=nano-x4
(gcc configured with --enable-checking=yes)

$ gcc-13-20220703 -c pr39060.C -march=nano-x2
...
pr39060.C:19:15: internal compiler error: canonical types differ for identical
types 'void (A::)(void*)' and 'void (A::)(void*)'
   19 | A::A (void* i=) {}      // { dg-error "primary-expression|argument" }
      |               ^
0xa4d28c comptypes(tree_node*, tree_node*, int)
        ../../gcc/cp/typeck.cc:1560
0x7fa24c duplicate_decls(tree_node*, tree_node*, bool, bool)
        ../../gcc/cp/decl.cc:2470
0x6bc66f grokfndecl
        ../../gcc/cp/decl.cc:10580
...

Reply via email to