- Mar 26, 2010
-
-
John McCall authored
llvm-svn: 99601
-
Douglas Gregor authored
that we extend/truncate then correct the sign to convert the non-type template argument to the template parameter's type. Previously, we reported an error when the non-type template argument was out of range; now we just warn. llvm-svn: 99600
-
John McCall authored
llvm-svn: 99596
-
Ted Kremenek authored
llvm-svn: 99595
-
Ted Kremenek authored
if even they contain errors. llvm-svn: 99594
-
Anders Carlsson authored
llvm-svn: 99588
-
Eric Christopher authored
llvm-svn: 99587
-
Anders Carlsson authored
llvm-svn: 99586
-
Douglas Gregor authored
llvm-svn: 99583
-
Rafael Espindola authored
Fixes PR6706. llvm-svn: 99582
-
Anders Carlsson authored
llvm-svn: 99581
-
Anders Carlsson authored
llvm-svn: 99576
-
- Mar 25, 2010
-
-
Douglas Gregor authored
the type of its corresponding non-type template parameter changes the value. Previously, we were diagnosing this as an error, which was wrong. We give reasonably nice warnings like: test/SemaTemplate/temp_arg_nontype.cpp:100:10: warning: non-type template argument value '256' truncated to '0' for template parameter of type 'unsigned char' Overflow<256> *overflow3; // expected-warning{{non-type template ... ^~~ test/SemaTemplate/temp_arg_nontype.cpp:96:24: note: template parameter is declared here template<unsigned char C> struct Overflow; ^ llvm-svn: 99561
-
Douglas Gregor authored
how to handle a diagnostic during template argument deduction, which may be "substitution failure", "suppress", or "report". This keeps us from, e.g., emitting warnings while performing template argument deduction. llvm-svn: 99560
-
John McCall authored
doing all the cleanup tasks and checks. This gives us the proper context for checking access to base and member destructors. llvm-svn: 99559
-
Fariborz Jahanian authored
from properties of _Complex type. (radar 7351147). llvm-svn: 99558
-
Anders Carlsson authored
llvm-svn: 99555
-
John McCall authored
friendship for a derived class if the base class specifier was non-public, and thus not considering friendship for non-public members of public bases. llvm-svn: 99554
-
John McCall authored
we look for shadow friend decls in the appropriate scope before injecting a new declaration. llvm-svn: 99552
-
Fariborz Jahanian authored
llvm-svn: 99526
-
John McCall authored
llvm-svn: 99525
-
Daniel Dunbar authored
gcc, and the common expectation seems to be that they are unused. If and when someone cares we can add them back with well documented demantics. llvm-svn: 99522
-
Anders Carlsson authored
llvm-svn: 99516
-
Douglas Gregor authored
llvm-svn: 99515
-
John Thompson authored
llvm-svn: 99513
-
Douglas Gregor authored
llvm-svn: 99510
-
Douglas Gregor authored
- When substituting template arguments as part of template argument deduction, introduce a new local instantiation scope. - When substituting into a function prototype type, introduce a new "temporary" local instantiation scope that merges with its outer scope but also keeps track of any additions it makes, removing them when we exit that scope. Fixes PR6700, where we were getting too much mixing of local instantiation scopes due to template argument deduction that substituted results into function types. llvm-svn: 99509
-
Anders Carlsson authored
When -fdump-vtable-layouts is specified, construction vtable initializers will be generated using the new vtable layout code. (The code is still not completely in place but this is a huge step forward). llvm-svn: 99508
-
Nuno Lopes authored
llvm-svn: 99505
-
John McCall authored
the redeclaration chain. Recommitted from r99477 with a fix: we need to merge in default template arguments from previous declarations. llvm-svn: 99496
-
Zhongxing Xu authored
llvm-svn: 99495
-
Bob Wilson authored
buildbot. The tramp3d test fails. --- Reverse-merging r99477 into '.': U test/SemaTemplate/friend-template.cpp U test/CXX/temp/temp.decls/temp.friend/p1.cpp U lib/Sema/SemaTemplateInstantiateDecl.cpp U lib/Sema/SemaAccess.cpp llvm-svn: 99481
-
Ted Kremenek authored
(1) Do not assume the data arguments start after the format string (2) Do not use the fact that a function is variadic to treat it like a va_list printf function Fixes PR 6697. llvm-svn: 99480
-
Ted Kremenek authored
llvm-svn: 99479
-
John McCall authored
llvm-svn: 99477
-
Ted Kremenek authored
llvm-svn: 99476
-
Ted Kremenek authored
llvm-svn: 99475
-
Zhongxing Xu authored
Instead of setting the ReturnExpr GDM to NULL, remove it. llvm-svn: 99470
-
Anders Carlsson authored
llvm-svn: 99462
-
Anders Carlsson authored
llvm-svn: 99461
-