This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60315] New: template constructor switch optimization
- From: "garcia.espinosa.jr at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 22 Feb 2014 05:53:52 +0000
- Subject: [Bug c++/60315] New: template constructor switch optimization
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60315
Bug ID: 60315
Summary: template constructor switch optimization
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: garcia.espinosa.jr at gmail dot com
Created attachment 32198
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32198&action=edit
code to trigger the error when compiled with "gcc -O1 test.cpp"
g++ 4.8 huge (infinite?) compiling time when optimization is requested (any
-Ox)
Code works well with previous versions (4.6, 4.7), or if no optimization is
requested.
Also, if the number of switch cases is reduced to 3 (eg comment out the case E4
line), no noticeable compiling time
Tested: GCC 4.8.1, Linux x86_64 (ubuntu 12.04 and others)