public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56329] New: Segmentation fault on simple invalid code with variadic template specialisation
@ 2013-02-14 18:52 jmetcalfe at acm dot org
  2013-02-14 21:08 ` [Bug c++/56329] " redi at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: jmetcalfe at acm dot org @ 2013-02-14 18:52 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56329
           Summary: Segmentation fault on simple invalid code with
                    variadic template specialisation
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jmetcalfe@acm.org


Created attachment 29452
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29452
Test case causing seg fault

Attached test case causes "spec.cpp:5:8: internal compiler error: Segmentation
fault:

Version: 4.7.2 
Configured with:  ../configure --enable-languages=c,c++,fortran
--disable-checking --disable-multilib --disable-multiarch --disable-nls
--enable-lto --enable-libstdcxx-time
Target:  x86_64-unknown-linux-gnu

Command line: g++ -std=c++0x spec.cpp


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/56329] Segmentation fault on simple invalid code with variadic template specialisation
  2013-02-14 18:52 [Bug c++/56329] New: Segmentation fault on simple invalid code with variadic template specialisation jmetcalfe at acm dot org
@ 2013-02-14 21:08 ` redi at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: redi at gcc dot gnu.org @ 2013-02-14 21:08 UTC (permalink / raw)
  To: gcc-bugs


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE
      Known to fail|                            |4.7.3

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-14 21:08:19 UTC ---
Trunk gives an error not an ICE:

t.cc:5:8: error: partial specialization is not more specialized than the
primary template because it replaces multiple parameters with a pack expansion
 struct MyClass<args...> {};
        ^
t.cc:2:8: note: primary template here
 struct MyClass;
        ^

I think this is a dup of PR 52008

*** This bug has been marked as a duplicate of bug 52008 ***


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-14 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14 18:52 [Bug c++/56329] New: Segmentation fault on simple invalid code with variadic template specialisation jmetcalfe at acm dot org
2013-02-14 21:08 ` [Bug c++/56329] " redi at gcc dot gnu.org

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).