public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60200] [4.9 Regression] [c++11] ICE with invalid use of auto in typedef
  2014-02-14 16:02 [Bug c++/60200] New: [c++11] ICE with invalid use of auto in typedef reichelt at gcc dot gnu.org
@ 2014-02-14 16:02 ` reichelt at gcc dot gnu.org
  2014-02-14 16:45 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-14 16:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60200

Volker Reichelt <reichelt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery,
                   |                            |ice-on-invalid-code
      Known to work|                            |4.7.0, 4.8.0
   Target Milestone|---                         |4.9.0
            Summary|[c++11] ICE with invalid    |[4.9 Regression] [c++11]
                   |use of auto in typedef      |ICE with invalid use of
                   |                            |auto in typedef
      Known to fail|                            |4.9.0


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

* [Bug c++/60200] New: [c++11] ICE with invalid use of auto in typedef
@ 2014-02-14 16:02 reichelt at gcc dot gnu.org
  2014-02-14 16:02 ` [Bug c++/60200] [4.9 Regression] " reichelt at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2014-02-14 16:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60200

            Bug ID: 60200
           Summary: [c++11] ICE with invalid use of auto in typedef
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org

The following invalid code snippet (compiled with "-std=c++11") triggers
an ICE on trunk:

===========================================
template<typename> struct A
{
  typedef auto X;
};

A<int> a;
===========================================

bug.cc:3:16: error: typedef declared 'auto'
   typedef auto X;
                ^
bug.cc: In instantiation of 'struct A<int>':
bug.cc:6:8:   required from here
bug.cc:3:16: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in tsubst_decl, at cp/pt.c:10817
0xdc0407 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        ../../gcc/gcc/tree.c:9243
0x631b69 tree_class_check
        ../../gcc/gcc/tree.h:2832
0x631b69 tsubst_decl
        ../../gcc/gcc/cp/pt.c:10817
0x61be9f tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/gcc/cp/pt.c:11357
0x64a34a instantiate_class_template_1
        ../../gcc/gcc/cp/pt.c:9010
0x64a34a instantiate_class_template(tree_node*)
        ../../gcc/gcc/cp/pt.c:9274
0x6db973 complete_type(tree_node*)
        ../../gcc/gcc/cp/typeck.c:134
0x5c4f38 start_decl_1(tree_node*, bool)
        ../../gcc/gcc/cp/decl.c:4719
0x5ede67 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
        ../../gcc/gcc/cp/decl.c:4682
0x6c7e9e cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:16680
0x6c9929 cp_parser_simple_declaration
        ../../gcc/gcc/cp/parser.c:11205
0x6acc13 cp_parser_block_declaration
        ../../gcc/gcc/cp/parser.c:11086
0x6d3ec2 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:10983
0x6d2bb8 cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:10869
0x6d445a cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4014
0x6d445a c_parse_file()
        ../../gcc/gcc/cp/parser.c:31536
0x7f37c3 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1060
Please submit a full bug report, [etc.]


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

* [Bug c++/60200] [4.9 Regression] [c++11] ICE with invalid use of auto in typedef
  2014-02-14 16:02 [Bug c++/60200] New: [c++11] ICE with invalid use of auto in typedef reichelt at gcc dot gnu.org
  2014-02-14 16:02 ` [Bug c++/60200] [4.9 Regression] " reichelt at gcc dot gnu.org
@ 2014-02-14 16:45 ` jakub at gcc dot gnu.org
  2014-02-21 19:00 ` jason at gcc dot gnu.org
  2014-02-21 20:43 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-02-14 16:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60200

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-02-14
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r199779.


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

* [Bug c++/60200] [4.9 Regression] [c++11] ICE with invalid use of auto in typedef
  2014-02-14 16:02 [Bug c++/60200] New: [c++11] ICE with invalid use of auto in typedef reichelt at gcc dot gnu.org
  2014-02-14 16:02 ` [Bug c++/60200] [4.9 Regression] " reichelt at gcc dot gnu.org
  2014-02-14 16:45 ` jakub at gcc dot gnu.org
@ 2014-02-21 19:00 ` jason at gcc dot gnu.org
  2014-02-21 20:43 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2014-02-21 19:00 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60200

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org


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

* [Bug c++/60200] [4.9 Regression] [c++11] ICE with invalid use of auto in typedef
  2014-02-14 16:02 [Bug c++/60200] New: [c++11] ICE with invalid use of auto in typedef reichelt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-02-21 19:00 ` jason at gcc dot gnu.org
@ 2014-02-21 20:43 ` jason at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2014-02-21 20:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60200

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Dup

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


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

end of thread, other threads:[~2014-02-21 20:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-14 16:02 [Bug c++/60200] New: [c++11] ICE with invalid use of auto in typedef reichelt at gcc dot gnu.org
2014-02-14 16:02 ` [Bug c++/60200] [4.9 Regression] " reichelt at gcc dot gnu.org
2014-02-14 16:45 ` jakub at gcc dot gnu.org
2014-02-21 19:00 ` jason at gcc dot gnu.org
2014-02-21 20:43 ` jason 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).