[Bug c++/80488] Erroneous error "lambda-expression in template argument"
arbmind at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 18 11:28:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80488
Andreas Reischuck <arbmind at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arbmind at gmail dot com
--- Comment #1 from Andreas Reischuck <arbmind at gmail dot com> ---
This bug also hit me.
I found this discussion on Stackoverflow:
https://stackoverflow.com/questions/43213997/why-is-gcc-failing-when-using-lambda-for-non-type-template-parameter
And I can report that VS2017 15.5 and clang 6 can compile this code:
template<void (*p)()>
void x() {}
void test() {
x<[] {}>();
}
template<auto> is not yet supported.
More information about the Gcc-bugs
mailing list