This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67838] Rejects-valid-code: templated lambda variable.
- From: "bisqwit at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Oct 2015 12:40:57 +0000
- Subject: [Bug c++/67838] Rejects-valid-code: templated lambda variable.
- Auto-submitted: auto-generated
- References: <bug-67838-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67838
--- Comment #1 from Joel Yliluoma <bisqwit at iki dot fi> ---
Note that the use of "template" here is to declare a parametric variable. It is
not for the function's parameter list. It works the same way as in this
expression:
template<bool LMode>
int v = 3*LMode;