public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/58448] New: ICE on invalid: tree_class_check_failed
@ 2013-09-17 18:39 dimhen at gmail dot com
2013-09-17 18:45 ` [Bug c++/58448] " paolo.carlini at oracle dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: dimhen at gmail dot com @ 2013-09-17 18:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448
Bug ID: 58448
Summary: ICE on invalid: tree_class_check_failed
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dimhen at gmail dot com
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/dimhen/src/gcc_current/configure
--prefix=/usr/local/gcc_current --with-multilib-list=m64
--enable-checking=yes,df,fold,rtl,tree --enable-languages=c,c++,lto
--enable-plugin --with-tune=native --with-arch=native
--enable-version-specific-runtime-libs
Thread model: posix
gcc version 4.9.0 20130917 (experimental) [trunk revision 202642] (GCC)
$ cat tree_class_check_failed.ii
class SmallVector struct Types4;
template <typename, typename, typename, typename> struct Types {
typedef Types4<>::Constructable
} Types<SmallVector, SmallVector, SmallVector, SmallVector>:: >
$ g++ -fpreprocessed -fsyntax-only tree_class_check_failed.ii
tree_class_check_failed.ii:1:26: error: multiple types in one declaration
class SmallVector struct Types4;
^
tree_class_check_failed.ii:3:11: error: ‘Types4’ is not a template
typedef Types4<>::Constructable
^
tree_class_check_failed.ii:3:21: error: typedef name may not be a
nested-name-specifier
typedef Types4<>::Constructable
^
tree_class_check_failed.ii:3:21: error: expected ‘;’ at end of member
declaration
tree_class_check_failed.ii: In instantiation of ‘struct Types<SmallVector,
SmallVector, SmallVector, SmallVector>’:
tree_class_check_failed.ii:4:60: required from here
tree_class_check_failed.ii:3:21: internal compiler error: tree check: expected
class ‘type’, have ‘exceptional’ (error_mark) in tsubst_decl, at cp/pt.c:10745
0xe287c9 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
/home/dimhen/src/gcc_current/gcc/tree.c:9258
0x65f7c1 tree_class_check
/home/dimhen/src/gcc_current/gcc/tree.h:2727
0x65f7c1 tsubst_decl
/home/dimhen/src/gcc_current/gcc/cp/pt.c:10745
0x64b5c4 tsubst(tree_node*, tree_node*, int, tree_node*)
/home/dimhen/src/gcc_current/gcc/cp/pt.c:11285
0x677f61 instantiate_class_template_1
/home/dimhen/src/gcc_current/gcc/cp/pt.c:8952
0x677f61 instantiate_class_template(tree_node*)
/home/dimhen/src/gcc_current/gcc/cp/pt.c:9216
0x70302b complete_type(tree_node*)
/home/dimhen/src/gcc_current/gcc/cp/typeck.c:132
0x6e1a9a cp_parser_nested_name_specifier_opt
/home/dimhen/src/gcc_current/gcc/cp/parser.c:5309
0x6e23bb cp_parser_nested_name_specifier
/home/dimhen/src/gcc_current/gcc/cp/parser.c:5372
0x6e24f3 cp_parser_ptr_operator
/home/dimhen/src/gcc_current/gcc/cp/parser.c:17302
0x6e879e cp_parser_declarator
/home/dimhen/src/gcc_current/gcc/cp/parser.c:16653
0x6ef959 cp_parser_init_declarator
/home/dimhen/src/gcc_current/gcc/cp/parser.c:16258
0x6f0c54 cp_parser_single_declaration
/home/dimhen/src/gcc_current/gcc/cp/parser.c:22647
0x6f3830 cp_parser_template_declaration_after_export
/home/dimhen/src/gcc_current/gcc/cp/parser.c:22449
0x6fb5c1 cp_parser_declaration
/home/dimhen/src/gcc_current/gcc/cp/parser.c:10728
0x6fa1ed cp_parser_declaration_seq_opt
/home/dimhen/src/gcc_current/gcc/cp/parser.c:10650
0x6fbac7 cp_parser_translation_unit
/home/dimhen/src/gcc_current/gcc/cp/parser.c:3939
0x6fbac7 c_parse_file()
/home/dimhen/src/gcc_current/gcc/cp/parser.c:28893
0x80e184 c_common_parse_file()
/home/dimhen/src/gcc_current/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.
>From gcc-bugs-return-430017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 17 18:40:16 2013
Return-Path: <gcc-bugs-return-430017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13001 invoked by alias); 17 Sep 2013 18:39:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1869 invoked by uid 48); 17 Sep 2013 18:31:30 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58380] [4.9 Regression] ice in fold_comparison
Date: Tue, 17 Sep 2013 18:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-58380-4-QnjX9FcocY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58380-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58380-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-09/txt/msg01257.txt.bz2
Content-length: 427
http://gcc.gnu.org/bugzilla/show_bug.cgi?idX380
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #12 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on trunk.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/58448] ICE on invalid: tree_class_check_failed 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com @ 2013-09-17 18:45 ` paolo.carlini at oracle dot com 2013-09-17 22:54 ` paolo.carlini at oracle dot com ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo.carlini at oracle dot com @ 2013-09-17 18:45 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2013-09-17 Ever confirmed|0 |1 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/58448] ICE on invalid: tree_class_check_failed 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com 2013-09-17 18:45 ` [Bug c++/58448] " paolo.carlini at oracle dot com @ 2013-09-17 22:54 ` paolo.carlini at oracle dot com 2013-10-04 10:54 ` paolo.carlini at oracle dot com ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo.carlini at oracle dot com @ 2013-09-17 22:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.9.0 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> --- Mine. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/58448] ICE on invalid: tree_class_check_failed 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com 2013-09-17 18:45 ` [Bug c++/58448] " paolo.carlini at oracle dot com 2013-09-17 22:54 ` paolo.carlini at oracle dot com @ 2013-10-04 10:54 ` paolo.carlini at oracle dot com 2013-10-04 23:14 ` paolo.carlini at oracle dot com ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo.carlini at oracle dot com @ 2013-10-04 10:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/58448] ICE on invalid: tree_class_check_failed 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com ` (2 preceding siblings ...) 2013-10-04 10:54 ` paolo.carlini at oracle dot com @ 2013-10-04 23:14 ` paolo.carlini at oracle dot com 2013-10-04 23:14 ` paolo at gcc dot gnu.org ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo.carlini at oracle dot com @ 2013-10-04 23:14 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- Fixed for 4.9.0. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/58448] ICE on invalid: tree_class_check_failed 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com ` (3 preceding siblings ...) 2013-10-04 23:14 ` paolo.carlini at oracle dot com @ 2013-10-04 23:14 ` paolo at gcc dot gnu.org 2013-10-08 21:54 ` paolo at gcc dot gnu.org ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: paolo at gcc dot gnu.org @ 2013-10-04 23:14 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448 --- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Fri Oct 4 23:13:59 2013 New Revision: 203218 URL: http://gcc.gnu.org/viewcvs?rev=203218&root=gcc&view=rev Log: /cp 2013-10-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58448 * pt.c (tsubst): Use error_operand_p on parameter t. /testsuite 2013-10-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58448 * g++.dg/template/crash117.C: New. Added: trunk/gcc/testsuite/g++.dg/template/crash117.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/58448] ICE on invalid: tree_class_check_failed 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com ` (4 preceding siblings ...) 2013-10-04 23:14 ` paolo at gcc dot gnu.org @ 2013-10-08 21:54 ` paolo at gcc dot gnu.org 2013-10-08 21:55 ` paolo.carlini at oracle dot com 2014-02-22 21:05 ` reichelt at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: paolo at gcc dot gnu.org @ 2013-10-08 21:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448 --- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Tue Oct 8 21:54:06 2013 New Revision: 203288 URL: http://gcc.gnu.org/viewcvs?rev=203288&root=gcc&view=rev Log: /cp 2013-10-08 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58665 Revert: 2013-10-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58448 * pt.c (tsubst): Use error_operand_p on parameter t. /testsuite 2013-10-08 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58665 Revert: 2013-10-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58448 * g++.dg/template/crash117.C: New. Removed: trunk/gcc/testsuite/g++.dg/template/crash117.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/58448] ICE on invalid: tree_class_check_failed 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com ` (5 preceding siblings ...) 2013-10-08 21:54 ` paolo at gcc dot gnu.org @ 2013-10-08 21:55 ` paolo.carlini at oracle dot com 2014-02-22 21:05 ` reichelt at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: paolo.carlini at oracle dot com @ 2013-10-08 21:55 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> --- Patch reverted. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/58448] ICE on invalid: tree_class_check_failed 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com ` (6 preceding siblings ...) 2013-10-08 21:55 ` paolo.carlini at oracle dot com @ 2014-02-22 21:05 ` reichelt at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: reichelt at gcc dot gnu.org @ 2014-02-22 21:05 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |DUPLICATE --- Comment #6 from Volker Reichelt <reichelt at gcc dot gnu.org> --- Duplicate of PR59347 which has been fixed yesterday. *** This bug has been marked as a duplicate of bug 59347 *** ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-02-22 21:05 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-09-17 18:39 [Bug c++/58448] New: ICE on invalid: tree_class_check_failed dimhen at gmail dot com 2013-09-17 18:45 ` [Bug c++/58448] " paolo.carlini at oracle dot com 2013-09-17 22:54 ` paolo.carlini at oracle dot com 2013-10-04 10:54 ` paolo.carlini at oracle dot com 2013-10-04 23:14 ` paolo.carlini at oracle dot com 2013-10-04 23:14 ` paolo at gcc dot gnu.org 2013-10-08 21:54 ` paolo at gcc dot gnu.org 2013-10-08 21:55 ` paolo.carlini at oracle dot com 2014-02-22 21:05 ` reichelt 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).