public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48531] New: [C++0x][SFINAE] Hard errors with arrays of unknown bound
@ 2011-04-09 17:09 daniel.kruegler at googlemail dot com
  2011-04-14 15:00 ` [Bug c++/48531] " jason at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2011-04-09 17:09 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0x][SFINAE] Hard errors with arrays of unknown
                    bound
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.kruegler@googlemail.com
                CC: jason@redhat.com


The following program should be well-formed, but is not:

template<class T,
  class = decltype(T())
>
char f(int);

template<class>
char (&f(...))[2];

static_assert(sizeof(f<int[]>(0)) != 1, "Error"); 

"cannot value-initialize array of unknown bound ‘int []’"


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

end of thread, other threads:[~2011-04-18 12:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-09 17:09 [Bug c++/48531] New: [C++0x][SFINAE] Hard errors with arrays of unknown bound daniel.kruegler at googlemail dot com
2011-04-14 15:00 ` [Bug c++/48531] " jason at gcc dot gnu.org
2011-04-14 15:11 ` jason at gcc dot gnu.org
2011-04-14 17:56 ` paolo.carlini at oracle dot com
2011-04-14 23:00 ` daniel.kruegler at googlemail dot com
2011-04-14 23:06 ` paolo.carlini at oracle dot com
2011-04-18  0:51 ` jason at gcc dot gnu.org
2011-04-18  4:23 ` jason at gcc dot gnu.org
2011-04-18 11:05 ` paolo.carlini at oracle dot com
2011-04-18 11:13 ` daniel.kruegler at googlemail dot com
2011-04-18 11:36 ` paolo.carlini at oracle dot com
2011-04-18 11:48 ` daniel.kruegler at googlemail dot com
2011-04-18 12:17 ` 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).