public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48280] New: [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695
@ 2011-03-25 0:39 zsojka at seznam dot cz
2011-03-25 10:27 ` [Bug c++/48280] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2011-03-25 0:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48280
Summary: [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check:
expected var_decl or function_decl, have template_decl
in check_bases_and_members, at cp/class.c:4695
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
----- testcase.C -----
struct S {
template < typename > S (const S &) = default;
};
----------------------
Compiler output:
$ gcc -std=c++0x testcase.C
testcase.C:2:41: error: 'S::S(const S&)' cannot be defaulted
testcase.C:1:8: internal compiler error: tree check: expected var_decl or
function_decl, have template_decl in check_bases_and_members, at
cp/class.c:4695
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r171399 - crash
4.6 r170955 - crash
4.5 r170955 - crash
4.4 r170955 - OK
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/48280] [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695
2011-03-25 0:39 [Bug c++/48280] New: [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695 zsojka at seznam dot cz
@ 2011-03-25 10:27 ` rguenth at gcc dot gnu.org
2011-03-31 21:04 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-25 10:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48280
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.25 10:19:40
Target Milestone|--- |4.5.3
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-25 10:19:40 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/48280] [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695
2011-03-25 0:39 [Bug c++/48280] New: [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695 zsojka at seznam dot cz
2011-03-25 10:27 ` [Bug c++/48280] " rguenth at gcc dot gnu.org
@ 2011-03-31 21:04 ` jason at gcc dot gnu.org
2011-03-31 21:06 ` jason at gcc dot gnu.org
2011-03-31 21:07 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-31 21:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48280
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-31 20:29:52 UTC ---
Author: jason
Date: Thu Mar 31 20:29:49 2011
New Revision: 171797
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171797
Log:
PR c++/48280
* method.c (defaultable_fn_check): Templates are not defaultable.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/defaulted24.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/method.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/48280] [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695
2011-03-25 0:39 [Bug c++/48280] New: [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695 zsojka at seznam dot cz
2011-03-25 10:27 ` [Bug c++/48280] " rguenth at gcc dot gnu.org
2011-03-31 21:04 ` jason at gcc dot gnu.org
@ 2011-03-31 21:06 ` jason at gcc dot gnu.org
2011-03-31 21:07 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-31 21:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48280
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-31 20:33:10 UTC ---
Author: jason
Date: Thu Mar 31 20:33:07 2011
New Revision: 171798
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171798
Log:
PR c++/48280
* method.c (defaultable_fn_check): Templates are not defaultable.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/defaulted24.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/method.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/48280] [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695
2011-03-25 0:39 [Bug c++/48280] New: [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695 zsojka at seznam dot cz
` (2 preceding siblings ...)
2011-03-31 21:06 ` jason at gcc dot gnu.org
@ 2011-03-31 21:07 ` jason at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-31 21:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48280
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|4.5.3 |4.6.1
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-31 20:33:57 UTC ---
Fixed for 4.6.1, not backporting to 4.5.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-31 20:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-25 0:39 [Bug c++/48280] New: [4.5/4.6/4.7 Regression] [C++0x] ICE: tree check: expected var_decl or function_decl, have template_decl in check_bases_and_members, at cp/class.c:4695 zsojka at seznam dot cz
2011-03-25 10:27 ` [Bug c++/48280] " rguenth at gcc dot gnu.org
2011-03-31 21:04 ` jason at gcc dot gnu.org
2011-03-31 21:06 ` jason at gcc dot gnu.org
2011-03-31 21:07 ` 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).