https://bugs.llvm.org/show_bug.cgi?id=49972
Bug ID: 49972
Summary: direct initialization fails for aggregate types
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
The following program
struct { int i; } s(42);
fails to compile, but is valid from C++20 since direct initialization can now
be used to initialize aggregate types.
GCC accepts the program https://godbolt.org/z/axo7bhacY
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs