public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46129] New: ICE: in tsubst_copy, at cp/pt.c:11375
@ 2010-10-22 10:01 marc.glisse at normalesup dot org
2010-10-22 10:16 ` [Bug c++/46129] [4.6 Regression] " paolo.carlini at oracle dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: marc.glisse at normalesup dot org @ 2010-10-22 10:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46129
Summary: ICE: in tsubst_copy, at cp/pt.c:11375
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: marc.glisse@normalesup.org
The following code recently (sometime in October) started failing to compile
with:
Sqrt_extension.cpp: In member function ‘void
Scalar_factor_traits<T>::Scalar_factor::operator()(const Gmpz&) [with T =
int]’:
Sqrt_extension.cpp:15:7: internal compiler error: in tsubst_copy, at
cp/pt.c:11375
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
class Gmpz { };
template <class T>
struct Scalar_factor_traits {
struct Scalar_factor
{
void operator () (const Gmpz& d_ = Gmpz() ) { }
};
};
void scalar_factor_traits_test(){
{
typedef Scalar_factor_traits<int> SFT;
SFT::Scalar_factor sfac;
sfac();
}
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/46129] [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11375
2010-10-22 10:01 [Bug c++/46129] New: ICE: in tsubst_copy, at cp/pt.c:11375 marc.glisse at normalesup dot org
@ 2010-10-22 10:16 ` paolo.carlini at oracle dot com
2010-10-22 13:48 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-22 10:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46129
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.10.22 10:16:00
CC| |hjl.tools at gmail dot com
Summary|ICE: in tsubst_copy, at |[4.6 Regression] ICE: in
|cp/pt.c:11375 |tsubst_copy, at
| |cp/pt.c:11375
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-22 10:16:00 UTC ---
HJ, can you do a binary search on this?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/46129] [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11375
2010-10-22 10:01 [Bug c++/46129] New: ICE: in tsubst_copy, at cp/pt.c:11375 marc.glisse at normalesup dot org
2010-10-22 10:16 ` [Bug c++/46129] [4.6 Regression] " paolo.carlini at oracle dot com
@ 2010-10-22 13:48 ` hjl.tools at gmail dot com
2010-10-22 18:38 ` jason at gcc dot gnu.org
2010-10-22 18:48 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2010-10-22 13:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46129
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-22 13:47:54 UTC ---
It is caused by revision 165307:
http://gcc.gnu.org/ml/gcc-cvs/2010-10/msg00490.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/46129] [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11375
2010-10-22 10:01 [Bug c++/46129] New: ICE: in tsubst_copy, at cp/pt.c:11375 marc.glisse at normalesup dot org
2010-10-22 10:16 ` [Bug c++/46129] [4.6 Regression] " paolo.carlini at oracle dot com
2010-10-22 13:48 ` hjl.tools at gmail dot com
@ 2010-10-22 18:38 ` jason at gcc dot gnu.org
2010-10-22 18:48 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2010-10-22 18:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46129
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2010-10-22 18:37:58 UTC ---
Author: jason
Date: Fri Oct 22 18:37:53 2010
New Revision: 165850
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165850
Log:
PR c++/46129
* pt.c (instantiate_class_template): Don't instantiate default
arguments.
Added:
trunk/gcc/testsuite/g++.dg/template/defarg14.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/46129] [4.6 Regression] ICE: in tsubst_copy, at cp/pt.c:11375
2010-10-22 10:01 [Bug c++/46129] New: ICE: in tsubst_copy, at cp/pt.c:11375 marc.glisse at normalesup dot org
` (2 preceding siblings ...)
2010-10-22 18:38 ` jason at gcc dot gnu.org
@ 2010-10-22 18:48 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2010-10-22 18:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46129
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |FIXED
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2010-10-22 18:48:02 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-10-22 18:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-22 10:01 [Bug c++/46129] New: ICE: in tsubst_copy, at cp/pt.c:11375 marc.glisse at normalesup dot org
2010-10-22 10:16 ` [Bug c++/46129] [4.6 Regression] " paolo.carlini at oracle dot com
2010-10-22 13:48 ` hjl.tools at gmail dot com
2010-10-22 18:38 ` jason at gcc dot gnu.org
2010-10-22 18:48 ` jason 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).