public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98538] New: [11 Regression] ICE in cp_build_qualified_type_real, at cp/tree.c:1335
@ 2021-01-05 16:06 doko at debian dot org
  2021-01-05 16:11 ` [Bug c++/98538] " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: doko at debian dot org @ 2021-01-05 16:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98538
           Summary: [11 Regression] ICE in cp_build_qualified_type_real,
                    at cp/tree.c:1335
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
  Target Milestone: ---

seen with trunk 20210102, building krita:

$ cat KoOptimizedCompositeOpFactory.ii
template <typename U, long> using CArray = U[];
template <typename U, long Extent, const CArray<U, Extent>

$ g++ -std=gnu++11 -Wall -c -O0 KoOptimizedCompositeOpFactory.ii 
KoOptimizedCompositeOpFactory.ii:2:42: internal compiler error: in
cp_build_qualified_type_real, at cp/tree.c:1335
    2 | template <typename U, long Extent, const CArray<U, Extent>
      |                                          ^~~~~~~~~~~~~~~~~
0x6133b4 cp_build_qualified_type_real(tree_node*, int, int)
        ../../src/gcc/cp/tree.c:1335
0x1302fc2 cp_build_qualified_type_real(tree_node*, int, int)
        ../../src/gcc/cp/tree.c:1307
0x1302fc2 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
        ../../src/gcc/cp/decl.c:11806
0x13b3bb4 cp_parser_template_parameter
        ../../src/gcc/cp/parser.c:17008
0x13b3bb4 cp_parser_template_parameter_list
        ../../src/gcc/cp/parser.c:16569
0x13b336c cp_parser_explicit_template_declaration
        ../../src/gcc/cp/parser.c:30247
0x12ec6ec cp_parser_declaration
        ../../src/gcc/cp/parser.c:14006
0x17e4663 cp_parser_toplevel_declaration
        ../../src/gcc/cp/parser.c:14104
0x17e4663 cp_parser_translation_unit
        ../../src/gcc/cp/parser.c:4936
0x17e4663 c_parse_file()
        ../../src/gcc/cp/parser.c:45118
0x17c602a c_common_parse_file()
        ../../src/gcc/c-family/c-opts.c:1211
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

building is configured with --enable-checking=yes,extra,rtl

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-15 21:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-05 16:06 [Bug c++/98538] New: [11 Regression] ICE in cp_build_qualified_type_real, at cp/tree.c:1335 doko at debian dot org
2021-01-05 16:11 ` [Bug c++/98538] " mpolacek at gcc dot gnu.org
2021-01-05 16:12 ` mpolacek at gcc dot gnu.org
2021-01-15 15:29 ` mpolacek at gcc dot gnu.org
2021-01-15 19:48 ` mpolacek at gcc dot gnu.org
2021-01-15 20:43 ` nathan at gcc dot gnu.org
2021-01-15 20:45 ` cvs-commit at gcc dot gnu.org
2021-01-15 20:46 ` nathan at gcc dot gnu.org
2021-01-15 21:04 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).