public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
@ 2011-03-14 16:04 redi at gcc dot gnu.org
2011-03-14 16:06 ` [Bug c++/48115] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-14 16:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
Summary: [4.6/4.7 Regression] [C++0x] internal compiler error:
in type_has_nontrivial_copy_init, at cp/tree.c:2482
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: redi@gcc.gnu.org
template<typename> struct templ { };
typedef void (*F2)(...);
template<typename F, typename T>
struct S
{
template<typename A>
decltype( F()(T()) )
f(A);
};
int main()
{
S<F2, templ<int>>().f(0);
}
compiles ok with 4.5, ICE with 4.6.o 20110305
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/48115] [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
2011-03-14 16:04 [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482 redi at gcc dot gnu.org
@ 2011-03-14 16:06 ` rguenth at gcc dot gnu.org
2011-03-14 16:52 ` [Bug c++/48115] [4.6/4.7 Regression] " redi at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-14 16:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.14 16:06:09
Target Milestone|--- |4.6.0
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-14 16:06:09 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/48115] [4.6/4.7 Regression] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
2011-03-14 16:04 [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482 redi at gcc dot gnu.org
2011-03-14 16:06 ` [Bug c++/48115] " rguenth at gcc dot gnu.org
@ 2011-03-14 16:52 ` redi at gcc dot gnu.org
2011-03-14 19:18 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-03-14 16:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.6/4.7 Regression] |[4.6/4.7 Regression]
|[C++0x] internal compiler |internal compiler error: in
|error: in |type_has_nontrivial_copy_in
|type_has_nontrivial_copy_in |it, at cp/tree.c:2482
|it, at cp/tree.c:2482 |
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-14 16:52:30 UTC ---
Here's a C++03 version which works with 4.5, clang and EDG, but ICEs with 4.6
template<typename> struct templ { };
template<typename T> T declval();
typedef int (*F2)(...);
template<int> struct Int { };
template<typename F, typename T>
struct S
{
template<typename A>
Int<sizeof( declval<F>()(T()) )>
f(A);
};
int main()
{
S<F2, templ<int> >().f(0);
}
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/48115] [4.6/4.7 Regression] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
2011-03-14 16:04 [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482 redi at gcc dot gnu.org
2011-03-14 16:06 ` [Bug c++/48115] " rguenth at gcc dot gnu.org
2011-03-14 16:52 ` [Bug c++/48115] [4.6/4.7 Regression] " redi at gcc dot gnu.org
@ 2011-03-14 19:18 ` jakub at gcc dot gnu.org
2011-03-16 18:19 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-14 19:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-14 19:18:26 UTC ---
Started failing with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161582
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/48115] [4.6/4.7 Regression] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
2011-03-14 16:04 [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482 redi at gcc dot gnu.org
` (2 preceding siblings ...)
2011-03-14 19:18 ` jakub at gcc dot gnu.org
@ 2011-03-16 18:19 ` jason at gcc dot gnu.org
2011-03-16 20:03 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-16 18:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-16 18:04:58 UTC ---
Got it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/48115] [4.6/4.7 Regression] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
2011-03-14 16:04 [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482 redi at gcc dot gnu.org
` (3 preceding siblings ...)
2011-03-16 18:19 ` jason at gcc dot gnu.org
@ 2011-03-16 20:03 ` jason at gcc dot gnu.org
2011-03-16 20:04 ` jason at gcc dot gnu.org
2011-03-16 20:23 ` jason at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-16 20:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-16 20:02:08 UTC ---
Author: jason
Date: Wed Mar 16 20:02:04 2011
New Revision: 171063
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171063
Log:
PR c++/48115
* call.c (convert_arg_to_ellipsis): Handle incomplete type.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/template/incomplete6.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/call.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/48115] [4.6/4.7 Regression] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
2011-03-14 16:04 [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482 redi at gcc dot gnu.org
` (4 preceding siblings ...)
2011-03-16 20:03 ` jason at gcc dot gnu.org
@ 2011-03-16 20:04 ` jason at gcc dot gnu.org
2011-03-16 20:23 ` jason at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-16 20:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-16 20:03:53 UTC ---
Author: jason
Date: Wed Mar 16 20:03:46 2011
New Revision: 171066
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171066
Log:
PR c++/48115
* call.c (convert_arg_to_ellipsis): Handle incomplete type.
Added:
trunk/gcc/testsuite/g++.dg/template/incomplete6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/48115] [4.6/4.7 Regression] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482
2011-03-14 16:04 [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482 redi at gcc dot gnu.org
` (5 preceding siblings ...)
2011-03-16 20:04 ` jason at gcc dot gnu.org
@ 2011-03-16 20:23 ` jason at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-16 20:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48115
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-16 20:22:42 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-03-16 20:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-14 16:04 [Bug c++/48115] New: [4.6/4.7 Regression] [C++0x] internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.c:2482 redi at gcc dot gnu.org
2011-03-14 16:06 ` [Bug c++/48115] " rguenth at gcc dot gnu.org
2011-03-14 16:52 ` [Bug c++/48115] [4.6/4.7 Regression] " redi at gcc dot gnu.org
2011-03-14 19:18 ` jakub at gcc dot gnu.org
2011-03-16 18:19 ` jason at gcc dot gnu.org
2011-03-16 20:03 ` jason at gcc dot gnu.org
2011-03-16 20:04 ` jason at gcc dot gnu.org
2011-03-16 20:23 ` 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).