[Bug c++/93739] Ability to print a type name without aborting compilation

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 14 10:01:00 GMT 2020


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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
template<typename T>
[[gnu::warning("your type here")]]
bool print_type() { return true; }

int i;
bool b = print_type<int>();


More information about the Gcc-bugs mailing list