public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55241] New: [C++11] diagnostics show sizeof...(T) as sizeof(T...)
@ 2012-11-08 15:10 redi at gcc dot gnu.org
  2013-02-15 19:32 ` [Bug c++/55241] " jason at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2012-11-08 15:10 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55241
           Summary: [C++11] diagnostics show sizeof...(T) as sizeof(T...)
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


template<unsigned N>
  using Num = int;

template<typename... T>
  using Count = Num<sizeof...(T)>;

Count<int, char, void> i;

This is incorrectly rejected by current trunk due to Bug 54859, which reveals
that the diagnostic shows sizeof(T...) not sizeof...(T)

e.C:5:33: error: integral expression 'sizeof (T ...)' is not constant


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

end of thread, other threads:[~2013-04-01 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-08 15:10 [Bug c++/55241] New: [C++11] diagnostics show sizeof...(T) as sizeof(T...) redi at gcc dot gnu.org
2013-02-15 19:32 ` [Bug c++/55241] " jason at gcc dot gnu.org
2013-03-17  2:35 ` jason at gcc dot gnu.org
2013-04-01 21:04 ` jason 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).