public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59204] New: Incorrect metaprogram evaluation in SFINAE context
@ 2013-11-20  8:37 webrown.cpp at gmail dot com
  2014-12-18 23:37 ` [Bug c++/59204] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: webrown.cpp at gmail dot com @ 2013-11-20  8:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59204
           Summary: Incorrect metaprogram evaluation in SFINAE context
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: webrown.cpp at gmail dot com

Created attachment 31255
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31255&action=edit
Demonstrating SFINAE failure to fail

Command:  g++-mp-4.9 -O3 -std=gnu++1y bug2.cc
Version: g++-mp-4.9 (MacPorts gcc49 4.9-20131110_0) 4.9.0 20131110
(experimental)

Attached program fails to compile because the 2nd static_assert incorrectly
leads to a diagnostic.

Used in a SFINAE context, it seems that the type expression
  void_t<typename T::type>
always yields the type void.  This seems too aggressive an outcome; when T has
no T::type member, the expression should instead be treated as invalid, hence
its context rejected due to SFINAE.


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

end of thread, other threads:[~2014-12-18 23:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-20  8:37 [Bug c++/59204] New: Incorrect metaprogram evaluation in SFINAE context webrown.cpp at gmail dot com
2014-12-18 23:37 ` [Bug c++/59204] " paolo.carlini at oracle dot com
2014-12-18 23:44 ` paolo at gcc dot gnu.org
2014-12-18 23:47 ` 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).