public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46420] New: [C++0X][4.6 regression] ICE: in tsubst_copy, at cp/pt.c:11677
@ 2010-11-10 20:58 marc.glisse at normalesup dot org
2010-11-11 6:17 ` [Bug c++/46420] " jason at gcc dot gnu.org
2010-11-11 6:20 ` jason at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: marc.glisse at normalesup dot org @ 2010-11-10 20:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46420
Summary: [C++0X][4.6 regression] ICE: in tsubst_copy, at
cp/pt.c:11677
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: marc.glisse@normalesup.org
template<typename> class vector { };
struct A{};
template <class T1>
void complete_test(vector<T1> data1){
A drop=A();
}
int main(){
vector<double> vect1;
complete_test(vect1);
}
Fine with -std=c++98 but not with -std=c++0x:
bug.cpp: In function ‘void complete_test(vector<T1>) [with T1 = double]’:
bug.cpp:9:22: instantiated from here
bug.cpp:5:11: internal compiler error: in tsubst_copy, at cp/pt.c:11677
This was mistakenly reported in PR 46156 but is a different bug. According to
H.J. Lu, it was caused by revision 166167:
http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00053.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/46420] [C++0X][4.6 regression] ICE: in tsubst_copy, at cp/pt.c:11677
2010-11-10 20:58 [Bug c++/46420] New: [C++0X][4.6 regression] ICE: in tsubst_copy, at cp/pt.c:11677 marc.glisse at normalesup dot org
@ 2010-11-11 6:17 ` jason at gcc dot gnu.org
2010-11-11 6:20 ` jason at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2010-11-11 6:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46420
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-11 06:17:38 UTC ---
Author: jason
Date: Thu Nov 11 06:17:32 2010
New Revision: 166592
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166592
Log:
PR c++/46420
* pt.c (tsubst_copy_and_build) [TARGET_EXPR]: New case.
[CONSTRUCTOR]: Use the tsubsted type.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-46420.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/46420] [C++0X][4.6 regression] ICE: in tsubst_copy, at cp/pt.c:11677
2010-11-10 20:58 [Bug c++/46420] New: [C++0X][4.6 regression] ICE: in tsubst_copy, at cp/pt.c:11677 marc.glisse at normalesup dot org
2010-11-11 6:17 ` [Bug c++/46420] " jason at gcc dot gnu.org
@ 2010-11-11 6:20 ` jason at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2010-11-11 6:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46420
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |FIXED
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-11 06:20:20 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-11 6:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-10 20:58 [Bug c++/46420] New: [C++0X][4.6 regression] ICE: in tsubst_copy, at cp/pt.c:11677 marc.glisse at normalesup dot org
2010-11-11 6:17 ` [Bug c++/46420] " jason at gcc dot gnu.org
2010-11-11 6:20 ` 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).