public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63578] New: ICE In  layout_type, at stor-layout.c:2398
@ 2014-10-17 16:50 ppluzhnikov at google dot com
  2021-10-01  9:58 ` [Bug c++/63578] ICE with may_alias and auto pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: ppluzhnikov at google dot com @ 2014-10-17 16:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63578
           Summary: ICE In  layout_type, at stor-layout.c:2398
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppluzhnikov at google dot com

Google ref: b/18024040

Test:

int *b;
auto __attribute__ ((may_alias)) a = b;  // replace auto with "int*" to fix

Using trunk @r216408:


r216408/bin/g++ -c -std=c++11 t.ii
t.ii:2:34: internal compiler error: in layout_type, at stor-layout.c:2398
 auto __attribute__ ((may_alias)) a = b;
                                  ^
0xbef8f3 layout_type(tree_node*)
        ../../gcc/stor-layout.c:2398
0xe36955 type_hash_canon(unsigned int, tree_node*)
        ../../gcc/tree.c:6821
0xe5344c build_type_attribute_qual_variant(tree_node*, tree_node*, int)
        ../../gcc/tree.c:4668
0x7a4966 decl_attributes(tree_node**, tree_node*, int)
        ../../gcc/attribs.c:621
0x670604 cplus_decl_attributes(tree_node**, tree_node*, int)
        ../../gcc/cp/decl2.c:1470
0x5d1162 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        ../../gcc/cp/decl.c:4630
0x6b9a2a cp_parser_init_declarator
        ../../gcc/cp/parser.c:17060
0x6bb559 cp_parser_simple_declaration
        ../../gcc/cp/parser.c:11538
0x69b0d3 cp_parser_block_declaration
        ../../gcc/cp/parser.c:11419
0x6c6df9 cp_parser_declaration
        ../../gcc/cp/parser.c:11316
0x6c5a3a cp_parser_declaration_seq_opt
        ../../gcc/cp/parser.c:11202
0x6c72e2 cp_parser_translation_unit
        ../../gcc/cp/parser.c:4090
0x6c72e2 c_parse_file()
        ../../gcc/cp/parser.c:32207
0x7f1942 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1046
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Also broken in gcc-4.8


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

* [Bug c++/63578] ICE with may_alias and auto
  2014-10-17 16:50 [Bug c++/63578] New: ICE In layout_type, at stor-layout.c:2398 ppluzhnikov at google dot com
@ 2021-10-01  9:58 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-01  9:58 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 89867.

*** This bug has been marked as a duplicate of bug 89867 ***

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

end of thread, other threads:[~2021-10-01  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-17 16:50 [Bug c++/63578] New: ICE In layout_type, at stor-layout.c:2398 ppluzhnikov at google dot com
2021-10-01  9:58 ` [Bug c++/63578] ICE with may_alias and auto pinskia 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).