From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6583 invoked by alias); 10 Dec 2012 14:18:27 -0000 Received: (qmail 6503 invoked by uid 48); 10 Dec 2012 14:18:08 -0000 From: "veksler at il dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55639] Partial nested template specialization leads to segmentation fault of g++ Date: Mon, 10 Dec 2012 14:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: veksler at il dot ibm.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00992.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55639 Michael Veksler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veksler at il dot ibm.com --- Comment #2 from Michael Veksler 2012-12-10 14:18:07 UTC --- I have a possibly similar test case (can someone confirm if my case is a DUP?). --- t.cpp -- template struct A { template struct B; }; template struct A::template B<0> { int foo(); }; ---- end -- $ /opt/gcc4.7.2/bin/g++ t.cpp t.cpp:8:23: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $/opt/gcc4.7.2/bin/g++ -v Using built-in specs. COLLECT_GCC=/opt/gcc4.7.2/bin/g++ COLLECT_LTO_WRAPPER=/opt/gcc4.7.2/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.7.2/configure --prefix=/opt/gcc4.7.2 Thread model: posix gcc version 4.7.2 (GCC)