public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58563] New: [c++0x] ICE calling invalid destructor
@ 2013-09-28 17:54 reichelt at gcc dot gnu.org
  2013-09-28 18:29 ` [Bug c++/58563] [c++11] " paolo.carlini at oracle dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-09-28 17:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58563
           Summary: [c++0x] ICE calling invalid destructor
           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 code snippet (compiled with "-std=c++0x") triggers an ICE since
GCC 4.4.0:

==============================
template<int> void foo()
{
  enum E {};
  E().E::~T();
}
==============================

bug.cc: In function 'void foo()':
bug.cc:4:11: error: 'enum foo()::E' is not a class
   E().E::~T();
           ^
bug.cc:4:11: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in cp_parser_lookup_name, at cp/parser.c:21759
0xcda4a9 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        ../../gcc/gcc/tree.c:9227
0x6322f5 tree_class_check
        ../../gcc/gcc/tree.h:2732
0x6322f5 cp_parser_lookup_name
        ../../gcc/gcc/cp/parser.c:21759
0x64f3a0 cp_parser_class_name
        ../../gcc/gcc/cp/parser.c:18736
0x64abb4 cp_parser_unqualified_id
        ../../gcc/gcc/cp/parser.c:4883
0x64b3f3 cp_parser_id_expression
        ../../gcc/gcc/cp/parser.c:4647
0x65b8de cp_parser_postfix_dot_deref_expression
        ../../gcc/gcc/cp/parser.c:6368
0x643569 cp_parser_postfix_expression
        ../../gcc/gcc/cp/parser.c:6031
0x64615d cp_parser_unary_expression
        ../../gcc/gcc/cp/parser.c:7009
0x646d3f cp_parser_binary_expression
        ../../gcc/gcc/cp/parser.c:7701
0x6471ff cp_parser_assignment_expression
        ../../gcc/gcc/cp/parser.c:7937
0x649063 cp_parser_expression
        ../../gcc/gcc/cp/parser.c:8099
0x64985e cp_parser_expression
        ../../gcc/gcc/cp/parser.c:8138
0x64985e cp_parser_expression_statement
        ../../gcc/gcc/cp/parser.c:9429
0x63f187 cp_parser_statement
        ../../gcc/gcc/cp/parser.c:9280
0x64046e cp_parser_statement_seq_opt
        ../../gcc/gcc/cp/parser.c:9552
0x6405b6 cp_parser_compound_statement
        ../../gcc/gcc/cp/parser.c:9506
0x65196b cp_parser_function_body
        ../../gcc/gcc/cp/parser.c:18318
0x65196b cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/gcc/cp/parser.c:18354
0x6529af cp_parser_function_definition_after_declarator
        ../../gcc/gcc/cp/parser.c:22338
Please submit a full bug report, [etc.]


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

end of thread, other threads:[~2013-10-01 18:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-28 17:54 [Bug c++/58563] New: [c++0x] ICE calling invalid destructor reichelt at gcc dot gnu.org
2013-09-28 18:29 ` [Bug c++/58563] [c++11] " paolo.carlini at oracle dot com
2013-09-30  7:36 ` [Bug c++/58563] [4.9 Regression] " mpolacek at gcc dot gnu.org
2013-09-30 19:03 ` paolo.carlini at oracle dot com
2013-09-30 19:08 ` mpolacek at gcc dot gnu.org
2013-10-01 18:45 ` paolo at gcc dot gnu.org
2013-10-01 18:46 ` paolo.carlini at oracle dot com

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).