Commit 5344af27 by Nathan Sidwell

add comment about why valid

From-SVN: r256071
parent e8e3054e
...@@ -6,5 +6,6 @@ int z; ...@@ -6,5 +6,6 @@ int z;
int main() { int main() {
constexpr int& y = x; constexpr int& y = x;
// OK, 'y' is not ODR used
[] { z = y; }(); [] { z = y; }();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment