public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52008] New: [C++0x] ICE when adding partial specialization for variadic-templated structure
@ 2012-01-26 10:44 ethouris at gmail dot com
  2012-01-26 13:03 ` [Bug c++/52008] " rguenth at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: ethouris at gmail dot com @ 2012-01-26 10:44 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52008
           Summary: [C++0x] ICE when adding partial specialization for
                    variadic-templated structure
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ethouris@gmail.com


I found this with the following code:

template <size_t B, typename Type1, typename... Types>
struct tuple_sliced
{
    typedef typename tuple_sliced<B-1, Types...>::type type;
};

template<typename... Types>
struct tuple_sliced<0, Types...>  // <-- line 18
{
    typedef tuple<Types...> type;
};

gcc 4.6 says that it's not implemented to expand "Types..." in the first
structure. With gcc 4.7 I got a message:

tuple.cc:18:8: internal compiler error: in process_partial_specialization, at
cp/pt.c:4398

The master declaration of tuple_sliced passes correctly - however any use of it
will result in infinite recursion when there's no terminal version.


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

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

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-26 10:44 [Bug c++/52008] New: [C++0x] ICE when adding partial specialization for variadic-templated structure ethouris at gmail dot com
2012-01-26 13:03 ` [Bug c++/52008] " rguenth at gcc dot gnu.org
2012-04-16 16:51 ` jason at gcc dot gnu.org
2012-04-17  2:33 ` jason at gcc dot gnu.org
2012-04-17 15:38 ` jason at gcc dot gnu.org
2012-04-20 13:33 ` ethouris at gmail dot com
2012-04-20 15:40 ` paolo.carlini at oracle dot com
2012-04-21  1:48 ` jason at gcc dot gnu.org
2012-04-21 12:07 ` ethouris at gmail dot com
2012-04-21 13:08 ` jason at gcc dot gnu.org
2012-04-23 12:39 ` ethouris at gmail dot com
2012-11-06 19:24 ` daniel.kruegler at googlemail dot com
2012-11-06 20:12 ` [Bug c++/52008] [Core/1495] " paolo.carlini at oracle dot com
2012-11-06 21:05 ` redi at gcc dot gnu.org
2012-11-06 23:32 ` ethouris at gmail dot com
2012-11-07  0:09 ` redi at gcc dot gnu.org
2012-11-07  7:18 ` ethouris at gmail dot com
2012-11-07 11:08 ` paolo.carlini at oracle dot com
2012-11-07 18:34 ` paolo.carlini at oracle dot com
2013-02-14 21:08 ` 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).