public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/63693] New: ICE c-opts.c:1067 @ 2014-10-30 22:45 rippey.e at gmail dot com 2015-02-09 19:00 ` [Bug c++/63693] " pinskia at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: rippey.e at gmail dot com @ 2014-10-30 22:45 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63693 Bug ID: 63693 Summary: ICE c-opts.c:1067 Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rippey.e at gmail dot com With gcc 4.9.2 or 4.9.1 running: g++ --std=c++11 ch3.cpp with the contents of ch3.cpp being: "template<typename T> class C{ T t; decltype(t)::a::" will produce: ch3.cpp:4:2: internal compiler error: Segmentation fault decltype(t)::a:: ^ 0x91b6df crash_signal ../../gcc-4.9.2/gcc/toplev.c:337 0x532c2a resolve_typename_type(tree_node*, bool) ../../gcc-4.9.2/gcc/cp/pt.c:21479 0x576cb1 cp_parser_nested_name_specifier_opt ../../gcc-4.9.2/gcc/cp/parser.c:5186 0x574343 cp_parser_id_expression ../../gcc-4.9.2/gcc/cp/parser.c:4711 0x57454f cp_parser_parse_and_diagnose_invalid_type_name ../../gcc-4.9.2/gcc/cp/parser.c:3024 0x58fa44 cp_parser_member_declaration ../../gcc-4.9.2/gcc/cp/parser.c:20256 0x571460 cp_parser_member_specification_opt ../../gcc-4.9.2/gcc/cp/parser.c:20108 0x571460 cp_parser_class_specifier_1 ../../gcc-4.9.2/gcc/cp/parser.c:19336 0x571460 cp_parser_class_specifier ../../gcc-4.9.2/gcc/cp/parser.c:19563 0x571460 cp_parser_type_specifier ../../gcc-4.9.2/gcc/cp/parser.c:14339 0x582a60 cp_parser_decl_specifier_seq ../../gcc-4.9.2/gcc/cp/parser.c:11575 0x58e2b3 cp_parser_single_declaration ../../gcc-4.9.2/gcc/cp/parser.c:23181 0x58e774 cp_parser_template_declaration_after_export ../../gcc-4.9.2/gcc/cp/parser.c:23050 0x592389 cp_parser_declaration ../../gcc-4.9.2/gcc/cp/parser.c:10975 0x590ef8 cp_parser_declaration_seq_opt ../../gcc-4.9.2/gcc/cp/parser.c:10897 0x5926fa cp_parser_translation_unit ../../gcc-4.9.2/gcc/cp/parser.c:4028 0x5926fa c_parse_file() ../../gcc-4.9.2/gcc/cp/parser.c:31701 0x63ab23 c_common_parse_file() ../../gcc-4.9.2/gcc/c-family/c-opts.c:1067 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. /disk/0/erippey/series2_we_qa/csrc/reduce>g++ --version g++ (GCC) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Obviously this example is not valid C++. It was arrived at by taking a much longer program which was believed to be valid C++ and removing parts without regard to validity. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/63693] ICE c-opts.c:1067 2014-10-30 22:45 [Bug c++/63693] New: ICE c-opts.c:1067 rippey.e at gmail dot com @ 2015-02-09 19:00 ` pinskia at gcc dot gnu.org 2015-08-07 17:48 ` [Bug c++/63693] ICE in resolve_typename_type rippey.e at gmail dot com ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2015-02-09 19:00 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63693 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2015-02-09 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed.; still ICEs as of today. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/63693] ICE in resolve_typename_type 2014-10-30 22:45 [Bug c++/63693] New: ICE c-opts.c:1067 rippey.e at gmail dot com 2015-02-09 19:00 ` [Bug c++/63693] " pinskia at gcc dot gnu.org @ 2015-08-07 17:48 ` rippey.e at gmail dot com 2015-08-13 15:17 ` paolo.carlini at oracle dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: rippey.e at gmail dot com @ 2015-08-07 17:48 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63693 --- Comment #2 from rippey.e at gmail dot com --- Tried with gcc 5.2.0. Same result (modulo line #'s, etc.) ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/63693] ICE in resolve_typename_type 2014-10-30 22:45 [Bug c++/63693] New: ICE c-opts.c:1067 rippey.e at gmail dot com 2015-02-09 19:00 ` [Bug c++/63693] " pinskia at gcc dot gnu.org 2015-08-07 17:48 ` [Bug c++/63693] ICE in resolve_typename_type rippey.e at gmail dot com @ 2015-08-13 15:17 ` paolo.carlini at oracle dot com 2015-08-22 17:45 ` paolo at gcc dot gnu.org 2015-08-22 18:35 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: paolo.carlini at oracle dot com @ 2015-08-13 15:17 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63693 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 --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- Mine. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/63693] ICE in resolve_typename_type 2014-10-30 22:45 [Bug c++/63693] New: ICE c-opts.c:1067 rippey.e at gmail dot com ` (2 preceding siblings ...) 2015-08-13 15:17 ` paolo.carlini at oracle dot com @ 2015-08-22 17:45 ` paolo at gcc dot gnu.org 2015-08-22 18:35 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: paolo at gcc dot gnu.org @ 2015-08-22 17:45 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63693 --- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Sat Aug 22 17:44:46 2015 New Revision: 227098 URL: https://gcc.gnu.org/viewcvs?rev=227098&root=gcc&view=rev Log: /cp 2015-08-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/63693 * pt.c (resolve_typename_type): Use CLASSTYPE_PRIMARY_TEMPLATE_TYPE only on class types. /testsuite 2015-08-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/63693 * g++.dg/cpp0x/decltype63.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/decltype63.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/63693] ICE in resolve_typename_type 2014-10-30 22:45 [Bug c++/63693] New: ICE c-opts.c:1067 rippey.e at gmail dot com ` (3 preceding siblings ...) 2015-08-22 17:45 ` paolo at gcc dot gnu.org @ 2015-08-22 18:35 ` paolo.carlini at oracle dot com 4 siblings, 0 replies; 6+ messages in thread From: paolo.carlini at oracle dot com @ 2015-08-22 18:35 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63693 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 Target Milestone|--- |6.0 --- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-22 18:35 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-10-30 22:45 [Bug c++/63693] New: ICE c-opts.c:1067 rippey.e at gmail dot com 2015-02-09 19:00 ` [Bug c++/63693] " pinskia at gcc dot gnu.org 2015-08-07 17:48 ` [Bug c++/63693] ICE in resolve_typename_type rippey.e at gmail dot com 2015-08-13 15:17 ` paolo.carlini at oracle dot com 2015-08-22 17:45 ` paolo at gcc dot gnu.org 2015-08-22 18:35 ` 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).