This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60315] New: template constructor switch optimization


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]