public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40371] New: ICE with template operator
@ 2009-06-07 20:35 reichelt at gcc dot gnu dot org
2009-08-25 15:35 ` [Bug c++/40371] " bangerth at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-06-07 20:35 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since at least GCC 2.95.3:
=================================
struct A
{
typedef void (&F)();
template<int> operator F();
};
void foo()
{
A()();
}
=================================
bug.cc: In function 'void foo()':
bug.cc:9:7: internal compiler error: in add_template_candidate_real, at
cp/call.c:2477
Please submit a full bug report, [etc.]
--
Summary: ICE with template operator
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40371
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/40371] ICE with template operator
2009-06-07 20:35 [Bug c++/40371] New: ICE with template operator reichelt at gcc dot gnu dot org
@ 2009-08-25 15:35 ` bangerth at gmail dot com
2009-11-30 17:28 ` paolo dot carlini at oracle dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bangerth at gmail dot com @ 2009-08-25 15:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bangerth at gmail dot com 2009-08-25 15:35 -------
Confirmed.
--
bangerth at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at gmail dot com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-08-25 15:35:35
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40371
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/40371] ICE with template operator
2009-06-07 20:35 [Bug c++/40371] New: ICE with template operator reichelt at gcc dot gnu dot org
2009-08-25 15:35 ` [Bug c++/40371] " bangerth at gmail dot com
@ 2009-11-30 17:28 ` paolo dot carlini at oracle dot com
2009-11-30 18:41 ` paolo dot carlini at oracle dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-30 17:28 UTC (permalink / raw)
To: gcc-bugs
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |paolo dot carlini at oracle
|dot org |dot com
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40371
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/40371] ICE with template operator
2009-06-07 20:35 [Bug c++/40371] New: ICE with template operator reichelt at gcc dot gnu dot org
2009-08-25 15:35 ` [Bug c++/40371] " bangerth at gmail dot com
2009-11-30 17:28 ` paolo dot carlini at oracle dot com
@ 2009-11-30 18:41 ` paolo dot carlini at oracle dot com
2009-11-30 22:45 ` paolo at gcc dot gnu dot org
2009-11-30 22:46 ` paolo dot carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-30 18:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo dot carlini at oracle dot com 2009-11-30 18:41 -------
Patch here: http://gcc.gnu.org/ml/gcc-patches/2009-11/msg01729.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40371
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/40371] ICE with template operator
2009-06-07 20:35 [Bug c++/40371] New: ICE with template operator reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-11-30 18:41 ` paolo dot carlini at oracle dot com
@ 2009-11-30 22:45 ` paolo at gcc dot gnu dot org
2009-11-30 22:46 ` paolo dot carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu dot org @ 2009-11-30 22:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo at gcc dot gnu dot org 2009-11-30 22:45 -------
Subject: Bug 40371
Author: paolo
Date: Mon Nov 30 22:45:06 2009
New Revision: 154852
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154852
Log:
cp/
2009-11-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/40371
* call.c (add_template_candidate_real): Early return NULL if
the arglist length is smaller than skip_without_in_chrg; tidy.
testsuite/
2009-11-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/40371
* g++.dg/template/crash93.C: New.
Added:
trunk/gcc/testsuite/g++.dg/template/crash93.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40371
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/40371] ICE with template operator
2009-06-07 20:35 [Bug c++/40371] New: ICE with template operator reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-11-30 22:45 ` paolo at gcc dot gnu dot org
@ 2009-11-30 22:46 ` paolo dot carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-30 22:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from paolo dot carlini at oracle dot com 2009-11-30 22:46 -------
Fixed.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40371
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-11-30 22:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-07 20:35 [Bug c++/40371] New: ICE with template operator reichelt at gcc dot gnu dot org
2009-08-25 15:35 ` [Bug c++/40371] " bangerth at gmail dot com
2009-11-30 17:28 ` paolo dot carlini at oracle dot com
2009-11-30 18:41 ` paolo dot carlini at oracle dot com
2009-11-30 22:45 ` paolo at gcc dot gnu dot org
2009-11-30 22:46 ` paolo dot 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).