public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57471] New: [C++11] Bizarre error for template parameter pack
@ 2013-05-30 12:34 ai.azuma at gmail dot com
  2013-06-03 22:53 ` [Bug c++/57471] [4.9 Regression] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ai.azuma at gmail dot com @ 2013-05-30 12:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57471
           Summary: [C++11] Bizarre error for template parameter pack
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ai.azuma at gmail dot com

Created attachment 30226
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30226&action=edit
Output of -v option and preprocessed source

GCC 4.9.0 20130526 rejects the following valid code.

//-----------------------------------------
struct A
{
  static constexpr bool value = true;
};

template<typename... Types>
struct B
{
  static_assert(A::value, "");
  static_assert(sizeof...(Types) == 0, "");
};
//-----------------------------------------

The error message is;

main.cpp:10:27: error: 'A::Types' has not been declared
   static_assert(sizeof...(Types) == 0, "");
                           ^

The above code successfully compiles with 4.7.4 20130525 and 4.8.1 20130523.


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

end of thread, other threads:[~2014-01-02 19:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-30 12:34 [Bug c++/57471] New: [C++11] Bizarre error for template parameter pack ai.azuma at gmail dot com
2013-06-03 22:53 ` [Bug c++/57471] [4.9 Regression] " paolo.carlini at oracle dot com
2013-06-03 23:50 ` paolo.carlini at oracle dot com
2013-07-09 19:46 ` jason at gcc dot gnu.org
2014-01-02 19:30 ` ppluzhnikov 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).