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: unassig...@gcc.gnu.org

        ReportedBy: r...@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

Reply via email to