[Bug c++/81349] Classes with deleted constructor templates incorrectly labeled as non-aggregates
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jul 7 19:57:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81349
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The suggested code contains several typos, here a corrected version:
#include <type_traits>
struct S {
template <typename T>
S(T) = delete;
};
int main() {
static_assert(std::is_aggregate_v<S>);
}
More information about the Gcc-bugs
mailing list