This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82047] non-existent variable template used to initialize variable
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Aug 2017 10:07:00 +0000
- Subject: [Bug c++/82047] non-existent variable template used to initialize variable
- Auto-submitted: auto-generated
- References: <bug-82047-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82047
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Actually I wonder if this is due to GCC implementing a solution for
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#253
The relevant rule is:
"A constexpr specifier used in an object declaration declares the object as
const. Such an object shall have literal type and shall be initialized."
And since there are no uninitialized members of S<void> the object is indeed
initialized, despite having no initializer. So I'm not sure this is a bug.