http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55639



             Bug #: 55639

           Summary: Partial nested template specialization leads to

                    segmentation fault of g++

    Classification: Unclassified

           Product: gcc

           Version: 4.7.2

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: c++

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: m...@nopw.de





Created attachment 28912

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28912

test case that cause g++ to exit with segmenation fault



When I compile the attached C++ file g++ finishes with a segmentation fault.



The problem might lie in the partial nested template specialization. If I

either remove the surrounding class (and defined the struct in the global

namespace) or if I remove the template specialization the error goes away.



Compiler version: g++-4.7 (Ubuntu/Linaro 4.7.2-11precise2) 4.7.2

Call: g++-4.7 -Wall -std=c++11 -o test template_specialization.cc

Reply via email to