[Bug c++/83003] Using the detection idiom and void_t causes an error
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 9 20:39:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83003
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |mpolacek at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This is now rejected:
$ xg++ -c 83003.C
83003.C: In substitution of ‘template<class T> using Zod_t = typename Zod::type
[with T = int]’:
83003.C:15:10: required from here
83003.C:10:26: error: no type named ‘type’ in ‘struct Zod<int>’
10 | template <class T> using Zod_t = typename Zod<T>::type;
| ^~~~~
So fixed in r270433.
More information about the Gcc-bugs
mailing list