public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60687] New: [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function
@ 2014-03-27 16:32 FBergemann at web dot de
2014-03-27 16:34 ` [Bug c++/60687] " FBergemann at web dot de
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: FBergemann at web dot de @ 2014-03-27 16:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60687
Bug ID: 60687
Summary: [4.8.0] Infinite loop compiling recursive templates
indirectly by local class in function
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: FBergemann at web dot de
[g++ 4.8.0 on Red Hat Linux 6.2 or Ubuntu Linux 12.04.3]
the g++ compiler is in an endless loop and has to be killed for compiling
main.cpp (attached next).
Then i get following error trace:
/opt/gcc-4.8.0/bin/g++ -O0 -g3 -Wall -c -fmessage-length=0 -std=c++11 -MMD -MP
-MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
g++: internal compiler error: Terminated (program cc1plus)
0x40cba1 execute
../../gcc/gcc.c:2822
0x40cee4 do_spec_1
../../gcc/gcc.c:4614
0x40f865 process_brace_body
../../gcc/gcc.c:5871
0x40f865 handle_braces
../../gcc/gcc.c:5785
0x40de07 do_spec_1
../../gcc/gcc.c:5268
0x40f865 process_brace_body
../../gcc/gcc.c:5871
0x40f865 handle_braces
../../gcc/gcc.c:5785
0x40de07 do_spec_1
../../gcc/gcc.c:5268
0x40daff do_spec_1
../../gcc/gcc.c:5373
0x40f865 process_brace_body
../../gcc/gcc.c:5871
0x40f865 handle_braces
../../gcc/gcc.c:5785
0x40de07 do_spec_1
../../gcc/gcc.c:5268
0x40f865 process_brace_body
../../gcc/gcc.c:5871
0x40f865 handle_braces
../../gcc/gcc.c:5785
0x40de07 do_spec_1
../../gcc/gcc.c:5268
0x40f865 process_brace_body
../../gcc/gcc.c:5871
0x40f865 handle_braces
../../gcc/gcc.c:5785
0x40de07 do_spec_1
../../gcc/gcc.c:5268
0x40f865 process_brace_body
../../gcc/gcc.c:5871
0x40f865 handle_braces
../../gcc/gcc.c:5785
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [main.o] Error 4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/60687] [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function
2014-03-27 16:32 [Bug c++/60687] New: [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function FBergemann at web dot de
@ 2014-03-27 16:34 ` FBergemann at web dot de
2014-03-28 19:05 ` jolfzverb at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: FBergemann at web dot de @ 2014-03-27 16:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60687
--- Comment #1 from Frank Bergemann <FBergemann at web dot de> ---
Created attachment 32466
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32466&action=edit
test program
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/60687] [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function
2014-03-27 16:32 [Bug c++/60687] New: [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function FBergemann at web dot de
2014-03-27 16:34 ` [Bug c++/60687] " FBergemann at web dot de
@ 2014-03-28 19:05 ` jolfzverb at gmail dot com
2014-03-29 11:03 ` FBergemann at web dot de
2015-03-19 10:45 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: jolfzverb at gmail dot com @ 2014-03-28 19:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60687
Yury Usishchev <jolfzverb at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jolfzverb at gmail dot com
--- Comment #2 from Yury Usishchev <jolfzverb at gmail dot com> ---
Created attachment 32479
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32479&action=edit
Reduced testcase
The loop is not infinite, eventually(after 30 minutes for my workstation) build
fails with error:
main.cpp:35:60: error: template instantiation depth exceeds maximum of 900
you can use -ftemplate-depth=100 to achieve it faster.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/60687] [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function
2014-03-27 16:32 [Bug c++/60687] New: [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function FBergemann at web dot de
2014-03-27 16:34 ` [Bug c++/60687] " FBergemann at web dot de
2014-03-28 19:05 ` jolfzverb at gmail dot com
@ 2014-03-29 11:03 ` FBergemann at web dot de
2015-03-19 10:45 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: FBergemann at web dot de @ 2014-03-29 11:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60687
--- Comment #3 from Frank Bergemann <FBergemann at web dot de> ---
Hi Yury,
ok - thanks!
I didn't know, that the default is that high (#1024 for c++11).
So you can close it RESOLVED/WORKSFORME or INVALID.
- many thanks!
best regards,
Frank
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/60687] [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function
2014-03-27 16:32 [Bug c++/60687] New: [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function FBergemann at web dot de
` (2 preceding siblings ...)
2014-03-29 11:03 ` FBergemann at web dot de
@ 2015-03-19 10:45 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-19 10:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60687
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Closing.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-19 10:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27 16:32 [Bug c++/60687] New: [4.8.0] Infinite loop compiling recursive templates indirectly by local class in function FBergemann at web dot de
2014-03-27 16:34 ` [Bug c++/60687] " FBergemann at web dot de
2014-03-28 19:05 ` jolfzverb at gmail dot com
2014-03-29 11:03 ` FBergemann at web dot de
2015-03-19 10:45 ` paolo.carlini at oracle dot com
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).