summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/cxx11-crashes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/cxx11-crashes.cpp')
-rw-r--r--test/SemaCXX/cxx11-crashes.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/SemaCXX/cxx11-crashes.cpp b/test/SemaCXX/cxx11-crashes.cpp
index a4d4829..bd51af1 100644
--- a/test/SemaCXX/cxx11-crashes.cpp
+++ b/test/SemaCXX/cxx11-crashes.cpp
@@ -70,9 +70,7 @@ namespace b6981007 {
for (auto x : s) {
// We used to attempt to evaluate the initializer of this variable,
// and crash because it has an undeduced type.
- // FIXME: We should set the loop variable to be invalid if we can't build
- // the loop, to suppress this follow-on error.
- const int &n(x); // expected-error {{could not bind to an lvalue of type 'auto'}}
+ const int &n(x);
}
}
}
OpenPOWER on IntegriCloud