public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/94890] New: std::tuple<aggregate>({0}) fails to compile with -std=c++2a
@ 2020-04-30 14:32 ppalka at gcc dot gnu.org
  2020-04-30 22:19 ` [Bug c++/94890] " ppalka at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-04-30 14:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94890

            Bug ID: 94890
           Summary: std::tuple<aggregate>({0}) fails to compile with
                    -std=c++2a
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

$ cat testcase.C
#include <tuple>

struct c { int i; };

std::tuple<c> x({0});

$ g++-10 -std=c++17 testcase.C
$ g++-10 -std=c++2a testcase.C
testcase.C:5:20: error: converting to ‘std::tuple<c>’ from initializer list
would use explicit constructor ‘constexpr
std::tuple<_Elements>::tuple(_UElements&& ...) [with _UElements = {int}; bool
_Valid = true; typename
std::enable_if<std::tuple<_Elements>::_TCC<_Valid>::__is_explicitly_constructible<_UElements
...>(), bool>::type <anonymous> = false; _Elements = {c}]’
    5 | std::tuple<c> x({0});
      |                    ^


PR94885 may be related, but its testcase wasn't reduced from this testcase.

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

end of thread, other threads:[~2020-09-27 19:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 14:32 [Bug libstdc++/94890] New: std::tuple<aggregate>({0}) fails to compile with -std=c++2a ppalka at gcc dot gnu.org
2020-04-30 22:19 ` [Bug c++/94890] " ppalka at gcc dot gnu.org
2020-04-30 23:01 ` ppalka at gcc dot gnu.org
2020-04-30 23:13 ` ppalka at gcc dot gnu.org
2020-05-01  2:59 ` mpolacek at gcc dot gnu.org
2020-05-01 14:28 ` ville.voutilainen at gmail dot com
2020-05-01 14:33 ` mpolacek at gcc dot gnu.org
2020-05-01 14:46 ` ville.voutilainen at gmail dot com
2020-05-01 14:47 ` ville.voutilainen at gmail dot com
2020-09-27 19:24 ` [Bug libstdc++/94890] " ville.voutilainen at gmail 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).