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
* [Bug c++/59204] Incorrect metaprogram evaluation in SFINAE context 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 ` 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 2 siblings, 0 replies; 4+ messages in thread From: paolo.carlini at oracle dot com @ 2014-12-18 23:37 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59204 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-12-18 Ever confirmed|0 |1 --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> --- This works in mainline. I'm adding the testcase and closing the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/59204] Incorrect metaprogram evaluation in SFINAE context 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 2 siblings, 0 replies; 4+ messages in thread From: paolo at gcc dot gnu.org @ 2014-12-18 23:44 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59204 --- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Thu Dec 18 23:43:46 2014 New Revision: 218878 URL: https://gcc.gnu.org/viewcvs?rev=218878&root=gcc&view=rev Log: 2014-12-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/59204 * g++.dg/cpp0x/sfinae53.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/sfinae53.C Modified: trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/59204] Incorrect metaprogram evaluation in SFINAE context 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 2 siblings, 0 replies; 4+ messages in thread From: paolo.carlini at oracle dot com @ 2014-12-18 23:47 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59204 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |5.0 --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> --- Done. Note: in r217250 Jason implemented the resolution of Core/1558. ^ 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).