diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 |
commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /test/SemaCXX/cxx11-crashes.cpp | |
parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) |
Diffstat (limited to 'test/SemaCXX/cxx11-crashes.cpp')
-rw-r--r-- | test/SemaCXX/cxx11-crashes.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/SemaCXX/cxx11-crashes.cpp b/test/SemaCXX/cxx11-crashes.cpp index a4d4829f3fc2..bd51af1da2fa 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); } } } |