Richard Smith
db05f1fb08
PR9546, DR1268: A prvalue cannot be reinterpret_cast to an rvalue reference
...
type. But a glvalue can be reinterpret_cast to either flavor of reference.
llvm-svn: 155789
2012-04-29 08:24:44 +00:00
David Blaikie
25896afbe5
Support decltype as a simple-type-specifier.
...
This makes all sorts of fun examples work with decltype.
Reviewed by Richard Smith.
llvm-svn: 148787
2012-01-24 05:47:35 +00:00
Douglas Gregor
7e1aa5b7ac
Don't try to diagnose anything when we're passing incomplete types
...
through varargs. This only happens when we're in an unevaluated
context, where we don't want to trigger an error anyway. Fixes PR11131
/ <rdar://problem/10288375>.
llvm-svn: 141986
2011-10-14 20:34:19 +00:00
Richard Smith
9ca5c42582
Update all tests other than Driver/std.cpp to use -std=c++11 rather than
...
-std=c++0x. Patch by Ahmed Charles!
llvm-svn: 141900
2011-10-13 22:29:44 +00:00
Douglas Gregor
253cadfe68
Implement C++0x semantics for passing non-POD classes through varargs.
...
llvm-svn: 131792
2011-05-21 16:27:21 +00:00
Douglas Gregor
b327eac117
Implement C++0x [expr.static.cast]p9, which permits explicitly casting
...
a scoped enumeration type to an integral or floating type,
properly. There was an over-eager assertion, and it was missing the
floating-point case.
Fixes PR9107/<rdar://problem/8937402>.
llvm-svn: 125825
2011-02-18 03:01:41 +00:00
Douglas Gregor
c1ed20cfba
Update const_cast semantics for rvalue references. Add tests for
...
reinterpret_cast and const_cast using rvalue references.
llvm-svn: 124007
2011-01-22 00:19:52 +00:00
Douglas Gregor
465184ae10
Teach static_cast and dynamic_cast about rvalue references.
...
llvm-svn: 124006
2011-01-22 00:06:57 +00:00
Sebastian Redl
872fad8627
Test case for my last fix.
...
llvm-svn: 103252
2010-05-07 11:15:33 +00:00