summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-25 02:17:32 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-25 02:17:32 +0000
commit0098499f7d8de4d6ddc915a78b5b1a31b52feea7 (patch)
tree0cd9de3d1349c2feddb5630bf2aef9a91c654f86 /clang/lib/Parse/ParseDecl.cpp
parentcd087f25126daac1fe4ed12a973f2cb88a5440bf (diff)
downloadbcm5719-llvm-0098499f7d8de4d6ddc915a78b5b1a31b52feea7.tar.gz
bcm5719-llvm-0098499f7d8de4d6ddc915a78b5b1a31b52feea7.zip
Downgrade the error about rvalue references to an extension warning
and turn on __has_feature(cxx_rvalue_references). The core rvalue references proposal seems to be fully implemented now, pending lots more testing. llvm-svn: 124169
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 355ba022f6c..f4a79077a92 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -2722,7 +2722,7 @@ void Parser::ParseDeclaratorInternal(Declarator &D,
// Complain about rvalue references in C++03, but then go on and build
// the declarator.
if (Kind == tok::ampamp && !getLang().CPlusPlus0x)
- Diag(Loc, diag::err_rvalue_reference);
+ Diag(Loc, diag::ext_rvalue_reference);
// C++ 8.3.2p1: cv-qualified references are ill-formed except when the
// cv-qualifiers are introduced through the use of a typedef or of a
OpenPOWER on IntegriCloud