public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55580] New: internal compiler error: Segmentation fault - with variadic template parameter
@ 2012-12-03 21:13 arturswiderski82 at gmail dot com
  2012-12-03 22:42 ` [Bug c++/55580] " vlukas at gmx dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: arturswiderski82 at gmail dot com @ 2012-12-03 21:13 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55580
           Summary: internal compiler error: Segmentation fault - with
                    variadic template parameter
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arturswiderski82@gmail.com


Created attachment 28865
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28865
main.cpp to  reproduce  bug

Code( I belive  valid one ) listed  below  crashes compiler 
I compile it  with g++ -c  -std=c++11 main.cpp 



template < int const _speed >
struct ConstValue
{
    static int const  Value = _speed;
};

template<  typename ... _Rest >
struct Features
{
    typedef ConstValue< 0 > Average;
};


template< typename ... _Rest >
template< int const _speed >
struct Features<  ConstValue< _speed >,  _Rest  ... >
{
    typedef ConstValue< 2 > Average;
};


int  main ()
 {

    Features< ConstValue< 2 >, ConstValue< 2 > >::Average Oki;

     return 0;

 }


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

end of thread, other threads:[~2012-12-04  0:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-03 21:13 [Bug c++/55580] New: internal compiler error: Segmentation fault - with variadic template parameter arturswiderski82 at gmail dot com
2012-12-03 22:42 ` [Bug c++/55580] " vlukas at gmx dot de
2012-12-03 23:11 ` arturswiderski82 at gmail dot com
2012-12-04  0:12 ` paolo.carlini at oracle dot com

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