public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51223] New: [4.5/4.6/4.7 Regression] ICE with invalid function parameter
@ 2011-11-19 19:34 reichelt at gcc dot gnu.org
2011-12-05 14:15 ` [Bug c++/51223] " rguenth at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-19 19:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51223
Bug #: 51223
Summary: [4.5/4.6/4.7 Regression] ICE with invalid function
parameter
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
The following invalid code snippet triggers an ICE since GCC 4.5.0:
==========================
struct A
{
A foo(void i = 0);
};
void bar()
{
A().foo();
}
A A::foo(void i)
{
return A();
}
==========================
bug.cc:3:18: error: 'i' has incomplete type
bug.cc:3:19: error: invalid use of 'void'
bug.cc: In function 'void bar()':
bug.cc:8:11: error: call to 'A A::foo(<type error>)' uses the default argument
for parameter 1, which is not yet defined
bug.cc: At global scope:
bug.cc:11:15: error: 'i' has incomplete type
bug.cc:11:16: error: invalid use of 'void'
bug.cc: In function 'void bar()':
bug.cc:8:11: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in useless_type_conversion_p, at tree-ssa.c:1460
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51223] [4.5/4.6/4.7 Regression] ICE with invalid function parameter
2011-11-19 19:34 [Bug c++/51223] New: [4.5/4.6/4.7 Regression] ICE with invalid function parameter reichelt at gcc dot gnu.org
@ 2011-12-05 14:15 ` rguenth at gcc dot gnu.org
2011-12-06 14:03 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-05 14:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51223
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.5.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51223] [4.5/4.6/4.7 Regression] ICE with invalid function parameter
2011-11-19 19:34 [Bug c++/51223] New: [4.5/4.6/4.7 Regression] ICE with invalid function parameter reichelt at gcc dot gnu.org
2011-12-05 14:15 ` [Bug c++/51223] " rguenth at gcc dot gnu.org
@ 2011-12-06 14:03 ` rguenth at gcc dot gnu.org
2012-01-01 22:14 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-06 14:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51223
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P5
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51223] [4.5/4.6/4.7 Regression] ICE with invalid function parameter
2011-11-19 19:34 [Bug c++/51223] New: [4.5/4.6/4.7 Regression] ICE with invalid function parameter reichelt at gcc dot gnu.org
2011-12-05 14:15 ` [Bug c++/51223] " rguenth at gcc dot gnu.org
2011-12-06 14:03 ` rguenth at gcc dot gnu.org
@ 2012-01-01 22:14 ` pinskia at gcc dot gnu.org
2012-01-23 18:58 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-01 22:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51223
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-01
CC| |pinskia at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-01 22:13:38 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51223] [4.5/4.6/4.7 Regression] ICE with invalid function parameter
2011-11-19 19:34 [Bug c++/51223] New: [4.5/4.6/4.7 Regression] ICE with invalid function parameter reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2012-01-01 22:14 ` pinskia at gcc dot gnu.org
@ 2012-01-23 18:58 ` paolo.carlini at oracle dot com
2012-01-24 10:51 ` paolo at gcc dot gnu.org
2012-01-24 10:55 ` [Bug c++/51223] [4.5/4.6 " paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-23 18:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51223
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-23 18:40:23 UTC ---
On it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51223] [4.5/4.6/4.7 Regression] ICE with invalid function parameter
2011-11-19 19:34 [Bug c++/51223] New: [4.5/4.6/4.7 Regression] ICE with invalid function parameter reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2012-01-23 18:58 ` paolo.carlini at oracle dot com
@ 2012-01-24 10:51 ` paolo at gcc dot gnu.org
2012-01-24 10:55 ` [Bug c++/51223] [4.5/4.6 " paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: paolo at gcc dot gnu.org @ 2012-01-24 10:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51223
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-01-24 10:39:08 UTC ---
Author: paolo
Date: Tue Jan 24 10:39:03 2012
New Revision: 183472
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183472
Log:
/cp
2012-01-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51223
* call.c (build_over_call): Check for error_mark_node as
TREE_VALUE when default arguments are processed.
/testsuite
2012-01-24 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51223
* g++.dg/parse/crash58.C: New.
Added:
trunk/gcc/testsuite/g++.dg/parse/crash58.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/51223] [4.5/4.6 Regression] ICE with invalid function parameter
2011-11-19 19:34 [Bug c++/51223] New: [4.5/4.6/4.7 Regression] ICE with invalid function parameter reichelt at gcc dot gnu.org
` (4 preceding siblings ...)
2012-01-24 10:51 ` paolo at gcc dot gnu.org
@ 2012-01-24 10:55 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-24 10:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51223
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.5.4 |4.7.0
Summary|[4.5/4.6/4.7 Regression] |[4.5/4.6 Regression] ICE
|ICE with invalid function |with invalid function
|parameter |parameter
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-24 10:41:00 UTC ---
Fixed for 4.7.0.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-01-24 10:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-19 19:34 [Bug c++/51223] New: [4.5/4.6/4.7 Regression] ICE with invalid function parameter reichelt at gcc dot gnu.org
2011-12-05 14:15 ` [Bug c++/51223] " rguenth at gcc dot gnu.org
2011-12-06 14:03 ` rguenth at gcc dot gnu.org
2012-01-01 22:14 ` pinskia at gcc dot gnu.org
2012-01-23 18:58 ` paolo.carlini at oracle dot com
2012-01-24 10:51 ` paolo at gcc dot gnu.org
2012-01-24 10:55 ` [Bug c++/51223] [4.5/4.6 " 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).