Last active
August 29, 2015 14:06
-
-
Save DieHertz/c585e2a48b23889ef204 to your computer and use it in GitHub Desktop.
There seems to be a bug in g++ 4.8.2, 4.9.0 and probably further releases.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct foo { | |
void bar() {} | |
void baz() const { | |
[this] { bar(); }(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
c++ lambda-expression-capture-const.cpp -std=c++11 -fsyntax-only