[Bug c++/80016] error is positioned incorrectly
vanyacpp at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Jan 2 21:50:35 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80016
Ivan Sorokin <vanyacpp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #6 from Ivan Sorokin <vanyacpp at gmail dot com> ---
(In reply to Jonathan Wakely from comment #5)
> I'd even argue the stating location still isn't right in this version, as
> the error comes from ns::trait<T>::value not the logical expression
> containing it.
On GCC 10.2 the error location is very nice:
<source>:13:46: error: incomplete type 'ns::trait<int>' used in nested name
specifier
13 | && ns::trait<T>::value;
| ^~~~~
https://godbolt.org/z/E7P7P8
I believe the bug can be considered fixed now. Thank you!
More information about the Gcc-bugs
mailing list