Skip to content

Instantly share code, notes, and snippets.

@DieHertz
Last active August 29, 2015 14:06
Show Gist options
  • Save DieHertz/c585e2a48b23889ef204 to your computer and use it in GitHub Desktop.
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.
struct foo {
void bar() {}
void baz() const {
[this] { bar(); }();
}
};
@DieHertz
Copy link
Author

c++ lambda-expression-capture-const.cpp -std=c++11 -fsyntax-only

@DieHertz
Copy link
Author

g++ 4.9 also affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment