public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call
@ 2013-10-05 20:10 reichelt at gcc dot gnu.org
2013-10-08 17:48 ` [Bug c++/58633] " paolo.carlini at oracle dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-10-05 20:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58633
Bug ID: 58633
Summary: [4.7/4.8/4.9 Regression] ICE with decltype of
destructor call
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 valid code snippet (compiled with "-std=c++0x") triggers an ICE
since GCC 4.7.0:
================================
void foo(int i)
{
typedef int I;
__decltype(i.I::~I())* p;
}
================================
bug.cc: In function 'void foo(int)':
bug.cc:4:22: internal compiler error: in cp_parser_abort_tentative_parse, at
cp/parser.c:24356
__decltype(i.I::~I())* p;
^
0x62fa03 cp_parser_abort_tentative_parse
../../gcc/gcc/cp/parser.c:24355
0x64270c cp_parser_decltype_expr
../../gcc/gcc/cp/parser.c:11708
0x64270c cp_parser_decltype
../../gcc/gcc/cp/parser.c:11791
0x65a192 cp_parser_simple_type_specifier
../../gcc/gcc/cp/parser.c:14298
0x637ea5 cp_parser_type_specifier
../../gcc/gcc/cp/parser.c:14168
0x64d739 cp_parser_decl_specifier_seq
../../gcc/gcc/cp/parser.c:11337
0x6517e9 cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:10927
0x653810 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:10876
0x654930 cp_parser_declaration_statement
../../gcc/gcc/cp/parser.c:10523
0x63d147 cp_parser_statement
../../gcc/gcc/cp/parser.c:9274
0x63e452 cp_parser_statement_seq_opt
../../gcc/gcc/cp/parser.c:9552
0x63e596 cp_parser_compound_statement
../../gcc/gcc/cp/parser.c:9506
0x64f95b cp_parser_function_body
../../gcc/gcc/cp/parser.c:18328
0x64f95b cp_parser_ctor_initializer_opt_and_function_body
../../gcc/gcc/cp/parser.c:18364
0x6509af cp_parser_function_definition_after_declarator
../../gcc/gcc/cp/parser.c:22351
0x6516d5 cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/gcc/cp/parser.c:22272
0x6516d5 cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:16357
0x65198f cp_parser_simple_declaration
../../gcc/gcc/cp/parser.c:10995
0x653810 cp_parser_block_declaration
../../gcc/gcc/cp/parser.c:10876
0x65c83e cp_parser_declaration
../../gcc/gcc/cp/parser.c:10773
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58633] [4.7/4.8/4.9 Regression] ICE with decltype of destructor call
2013-10-05 20:10 [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call reichelt at gcc dot gnu.org
@ 2013-10-08 17:48 ` paolo.carlini at oracle dot com
2013-10-10 11:51 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-08 17:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58633
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-10-08
Ever confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58633] [4.7/4.8/4.9 Regression] ICE with decltype of destructor call
2013-10-05 20:10 [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call reichelt at gcc dot gnu.org
2013-10-08 17:48 ` [Bug c++/58633] " paolo.carlini at oracle dot com
@ 2013-10-10 11:51 ` rguenth at gcc dot gnu.org
2013-10-11 14:35 ` paolo at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-10 11:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58633
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.7.4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58633] [4.7/4.8/4.9 Regression] ICE with decltype of destructor call
2013-10-05 20:10 [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call reichelt at gcc dot gnu.org
2013-10-08 17:48 ` [Bug c++/58633] " paolo.carlini at oracle dot com
2013-10-10 11:51 ` rguenth at gcc dot gnu.org
@ 2013-10-11 14:35 ` paolo at gcc dot gnu.org
2013-10-11 14:36 ` [Bug c++/58633] [4.7/4.8 " paolo.carlini at oracle dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2013-10-11 14:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58633
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Oct 11 14:35:23 2013
New Revision: 203448
URL: http://gcc.gnu.org/viewcvs?rev=203448&root=gcc&view=rev
Log:
/cp
2013-10-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58633
* parser.c (cp_parser_commit_to_topmost_tentative_parse): New.
(cp_parser_pseudo_destructor_name): Use it.
/testsuite
2013-10-11 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58633
* g++.dg/cpp0x/decltype57.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/decltype57.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58633] [4.7/4.8 Regression] ICE with decltype of destructor call
2013-10-05 20:10 [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2013-10-11 14:35 ` paolo at gcc dot gnu.org
@ 2013-10-11 14:36 ` paolo.carlini at oracle dot com
2013-10-16 22:19 ` paolo at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-11 14:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58633
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.7/4.8/4.9 Regression] |[4.7/4.8 Regression] ICE
|ICE with decltype of |with decltype of destructor
|destructor call |call
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in mainline so far.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58633] [4.7/4.8 Regression] ICE with decltype of destructor call
2013-10-05 20:10 [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2013-10-11 14:36 ` [Bug c++/58633] [4.7/4.8 " paolo.carlini at oracle dot com
@ 2013-10-16 22:19 ` paolo at gcc dot gnu.org
2013-10-16 22:20 ` paolo at gcc dot gnu.org
2013-10-16 22:22 ` paolo.carlini at oracle dot com
6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2013-10-16 22:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58633
--- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Oct 16 22:19:18 2013
New Revision: 203730
URL: http://gcc.gnu.org/viewcvs?rev=203730&root=gcc&view=rev
Log:
/cp
2013-10-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58633
* parser.c (cp_parser_pseudo_destructor_name): Revert r174385 changes.
/testsuite
2013-10-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58633
* g++.dg/cpp0x/decltype57.C: New.
* g++.dg/cpp0x/enum18.C: Revert r174385 changes.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/cpp0x/decltype57.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/parser.c
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/cpp0x/enum18.C
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58633] [4.7/4.8 Regression] ICE with decltype of destructor call
2013-10-05 20:10 [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call reichelt at gcc dot gnu.org
` (4 preceding siblings ...)
2013-10-16 22:19 ` paolo at gcc dot gnu.org
@ 2013-10-16 22:20 ` paolo at gcc dot gnu.org
2013-10-16 22:22 ` paolo.carlini at oracle dot com
6 siblings, 0 replies; 8+ messages in thread
From: paolo at gcc dot gnu.org @ 2013-10-16 22:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58633
--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Oct 16 22:20:35 2013
New Revision: 203731
URL: http://gcc.gnu.org/viewcvs?rev=203731&root=gcc&view=rev
Log:
/cp
2013-10-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58633
* parser.c (cp_parser_pseudo_destructor_name): Revert r174385 changes.
/testsuite
2013-10-16 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58633
* g++.dg/cpp0x/decltype57.C: New.
* g++.dg/cpp0x/enum18.C: Revert r174385 changes.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/decltype57.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/parser.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/enum18.C
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58633] [4.7/4.8 Regression] ICE with decltype of destructor call
2013-10-05 20:10 [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call reichelt at gcc dot gnu.org
` (5 preceding siblings ...)
2013-10-16 22:20 ` paolo at gcc dot gnu.org
@ 2013-10-16 22:22 ` paolo.carlini at oracle dot com
6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-16 22:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58633
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed 4.8.3 and 4.7.4 too.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-10-16 22:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-05 20:10 [Bug c++/58633] New: [4.7/4.8/4.9 Regression] ICE with decltype of destructor call reichelt at gcc dot gnu.org
2013-10-08 17:48 ` [Bug c++/58633] " paolo.carlini at oracle dot com
2013-10-10 11:51 ` rguenth at gcc dot gnu.org
2013-10-11 14:35 ` paolo at gcc dot gnu.org
2013-10-11 14:36 ` [Bug c++/58633] [4.7/4.8 " paolo.carlini at oracle dot com
2013-10-16 22:19 ` paolo at gcc dot gnu.org
2013-10-16 22:20 ` paolo at gcc dot gnu.org
2013-10-16 22:22 ` 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).