public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46564] New: [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization
@ 2010-11-19 16:12 zsojka at seznam dot cz
2010-11-19 19:37 ` [Bug c++/46564] " jakub at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-11-19 16:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46564
Summary: [4.6 Regression] ICE: in decl_constant_var_p, at
cp/decl2.c:3562 on invalid recursive initialization
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
------- testcase.C --------
template < int N > struct X {
static const int value = X<N>::value;
};
template struct X<1000>;
---------------------------
Compiler output:
$ gcc testcase.C
testcase.C:2:34: error: template instantiation depth exceeds maximum of 1024
(use -ftemplate-depth= to increase the maximum) instantiating 'X<1000>::value'
testcase.C:2:34: recursively instantiated from 'const int X<1000>::value'
testcase.C:2:34: instantiated from 'const int X<1000>::value'
testcase.C:4:17: instantiated from here
testcase.C:2:34: error: template instantiation depth exceeds maximum of 1024
(use -ftemplate-depth= to increase the maximum) instantiating 'X<1000>::value'
testcase.C:2:34: recursively instantiated from 'const int X<1000>::value'
testcase.C:2:34: instantiated from 'const int X<1000>::value'
testcase.C:4:17: instantiated from here
testcase.C:2:34: internal compiler error: in decl_constant_var_p, at
cp/decl2.c:3562
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r166936 - crash
r165699 - OK
4.5 r166509 - OK
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/46564] [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization
2010-11-19 16:12 [Bug c++/46564] New: [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization zsojka at seznam dot cz
@ 2010-11-19 19:37 ` jakub at gcc dot gnu.org
2010-11-19 21:47 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-11-19 19:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46564
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery
Priority|P3 |P4
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |4.6.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/46564] [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization
2010-11-19 16:12 [Bug c++/46564] New: [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization zsojka at seznam dot cz
2010-11-19 19:37 ` [Bug c++/46564] " jakub at gcc dot gnu.org
@ 2010-11-19 21:47 ` hjl.tools at gmail dot com
2010-12-08 20:54 ` gcc at abeckmann dot de
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-19 21:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46564
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.11.19 21:36:45
CC| |jason at redhat dot com
Ever Confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-19 21:36:45 UTC ---
It is caused by revision 166164:
http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00050.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/46564] [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization
2010-11-19 16:12 [Bug c++/46564] New: [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization zsojka at seznam dot cz
2010-11-19 19:37 ` [Bug c++/46564] " jakub at gcc dot gnu.org
2010-11-19 21:47 ` hjl.tools at gmail dot com
@ 2010-12-08 20:54 ` gcc at abeckmann dot de
2011-01-07 12:00 ` zsojka at seznam dot cz
2011-03-11 17:47 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: gcc at abeckmann dot de @ 2010-12-08 20:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46564
Andreas Beckmann <gcc at abeckmann dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc at abeckmann dot de
--- Comment #2 from Andreas Beckmann <gcc at abeckmann dot de> 2010-12-08 20:54:25 UTC ---
Another testcase without nesting problems, but using invalid code instead:
===== 8< =====
constexpr
pair
(
pair
===== >8 =====
$ g++-trunk -c -std=c++0x ice-decl_constant_var_p.min.ii
ice-decl_constant_var_p.min.ii:4:1: error: ISO C++ forbids declaration of
‘pair’ with no type [-fpermissive]
ice-decl_constant_var_p.min.ii:4:1: internal compiler error: in
decl_constant_var_p, at cp/decl2.c:3563
Please submit a full bug report,
$ g++-4.5 -c -std=c++0x ice-decl_constant_var_p.min.ii
ice-decl_constant_var_p.min.ii:4:1: error: ISO C++ forbids declaration of
‘pair’ with no type
ice-decl_constant_var_p.min.ii:4:1: error: expected ‘)’ at end of input
ice-decl_constant_var_p.min.ii:4:1: error: expected ‘,’ or ‘;’ at end of input
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/46564] [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization
2010-11-19 16:12 [Bug c++/46564] New: [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-12-08 20:54 ` gcc at abeckmann dot de
@ 2011-01-07 12:00 ` zsojka at seznam dot cz
2011-03-11 17:47 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-07 12:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46564
--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> 2011-01-07 11:55:26 UTC ---
I opened PR47207 for the problem described in comment #2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/46564] [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization
2010-11-19 16:12 [Bug c++/46564] New: [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization zsojka at seznam dot cz
` (3 preceding siblings ...)
2011-01-07 12:00 ` zsojka at seznam dot cz
@ 2011-03-11 17:47 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2011-03-11 17:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46564
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |WORKSFORME
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-11 17:47:19 UTC ---
This seems to have been fixed by a patch for another PR.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-11 17:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-19 16:12 [Bug c++/46564] New: [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization zsojka at seznam dot cz
2010-11-19 19:37 ` [Bug c++/46564] " jakub at gcc dot gnu.org
2010-11-19 21:47 ` hjl.tools at gmail dot com
2010-12-08 20:54 ` gcc at abeckmann dot de
2011-01-07 12:00 ` zsojka at seznam dot cz
2011-03-11 17:47 ` 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).