Douglas Gregor
e81f58e180
Properly diagnose invalid casts to function references. Patch by
...
Faisal Vali, tweaked by me. Fixes PR8230.
llvm-svn: 118400
2010-11-08 03:40:48 +00:00
John McCall
36226621f6
Progress.
...
llvm-svn: 116287
2010-10-12 02:09:17 +00:00
Douglas Gregor
db8c6fd18f
Check that an overloaded function name, when used by the ! operator,
...
actually resolves to a particular function. Fixes PR8181, from Faisal
Vali!
llvm-svn: 114331
2010-09-20 17:13:33 +00:00
Sebastian Redl
a8bac37bb1
Test destructors in delete expressions and of temporaries for throwing.
...
llvm-svn: 113664
2010-09-10 23:27:10 +00:00
Sebastian Redl
b8a76c42b5
Address Doug's comments.
...
llvm-svn: 113650
2010-09-10 22:34:40 +00:00
Sebastian Redl
e56be2f72c
Eli helped me understand how evaluation contexts work.
...
llvm-svn: 113642
2010-09-10 21:57:27 +00:00
Sebastian Redl
8c40ba392c
Test CXXNoexceptExpr codegen and serialization.
...
llvm-svn: 113630
2010-09-10 21:04:03 +00:00
Sebastian Redl
4fa4a6b85e
Add another small test case.
...
llvm-svn: 113628
2010-09-10 21:03:58 +00:00
Sebastian Redl
dbd14bdefc
Tests for noexcept in templates.
...
llvm-svn: 113625
2010-09-10 20:55:50 +00:00
Sebastian Redl
5f0180d815
First version of a testcase, plus fixes.
...
llvm-svn: 113624
2010-09-10 20:55:47 +00:00
John McCall
7d46051eea
Catch the case of trying to turn '&(X::a)' into a member pointer as well.
...
llvm-svn: 111997
2010-08-24 23:26:21 +00:00
John McCall
0f55a035cf
Restore r101841 without modification. Also mark 'operator delete' as used for
...
actual delete expressions, not just new expressions.
llvm-svn: 101861
2010-04-20 02:18:25 +00:00
John McCall
44adf26dd0
Revert r101841 and follow-up.
...
llvm-svn: 101859
2010-04-20 01:42:53 +00:00
John McCall
75b4746e7d
Don't bother looking for (or diagnosing problems with) the 'operator delete'
...
associated with a new expression if -fno-exceptions is set.
llvm-svn: 101841
2010-04-20 00:22:43 +00:00
John McCall
3155f573f5
Turn access control on by default in -cc1.
...
Remove -faccess-control from -cc1; add -fno-access-control.
Make the driver pass -fno-access-control by default.
Update a bunch of tests to be correct under access control.
llvm-svn: 100880
2010-04-09 19:03:51 +00:00
Douglas Gregor
6642ca217e
Implement semantic analysis for C++ [expr.new]p18-20, which describe
...
how we find the operator delete that matches withe operator new we
found in a C++ new-expression.
This will also need CodeGen support. On a happy note, we're now a
"nans" away from building tramp3d-v4.
llvm-svn: 97209
2010-02-26 05:06:18 +00:00
Daniel Dunbar
8fbe78f6fc
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
...
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).
llvm-svn: 91446
2009-12-15 20:14:24 +00:00
Daniel Dunbar
dd6e6918e6
Add test for expr.delete p5, with a FIXME.
...
llvm-svn: 88678
2009-11-13 19:13:56 +00:00