History log of /external/clang/test/CXX/basic/basic.start/basic.start.main/p2.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ef8225444452a1486bd721f3285301fe84643b00 21-Jul-2014 Stephen Hines <srhines@google.com> Update Clang for rebase to r212749.

This also fixes a small issue with arm_neon.h not being generated always.

Includes a cherry-pick of:
r213450 - fixes mac-specific header issue
r213126 - removes a default -Bsymbolic on Android

Change-Id: I2a790a0f5d3b2aab11de596fc3a74e7cbc99081d
/external/clang/test/CXX/basic/basic.start/basic.start.main/p2.cpp
bcd0650c1e50a2e73b11717731e074a1ac2ac5ba 08-Jul-2013 David Majnemer <david.majnemer@gmail.com> Sema: Do not merge new decls with invalid, old decls

Sema::MergeFunctionDecl attempts merging two decls even if the old decl
is invalid. This can lead to interesting circumstances where we
successfully merge the decls but the result makes no sense.

Take the following for example:

template <typename T>
int main(void);

int main(void);

Sema will not consider these to be overloads of the same name because
main can't be overloaded, which means that this must be a redeclaration.

In this case the templated decl is compatible with the non-templated
decl allowing the Sema::CheckFunctionDeclaration machinery to move on
and do bizarre things like setting the previous decl of a non-templated
decl to a templated decl!

The way I see it, we should just bail from MergeFunctionDecl if the old
decl is invalid.

This fixes PR16531.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CXX/basic/basic.start/basic.start.main/p2.cpp
c371db6b1dac65d61c8952b6198cc970a9e25ee4 06-Jul-2013 David Majnemer <david.majnemer@gmail.com> Sema: Fix a crash when main is redeclared as a function-template.

This boils down to us sending invalid function decls to
CheckFunctionDeclaration becauswe we did not consider that CheckMain
could cause the decl to be invalid. Instead, interogate the new decl's
main-validity and *then* send it over to get CheckFunctionDeclaration'd
if it was still valid after calling CheckMain.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185745 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CXX/basic/basic.start/basic.start.main/p2.cpp
485b31292752252328de0a3db1d1cd39c87026c0 29-Jan-2013 Richard Smith <richard-llvm@metafoo.co.uk> PR15100: look through type sugar when determining whether we have one of the
forms of 'main' which we accept as an extension.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173758 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CXX/basic/basic.start/basic.start.main/p2.cpp
2f83694302798936fe1f7768a91063350d1b79e5 29-Jan-2013 Richard Smith <richard-llvm@metafoo.co.uk> Fold tests for C++ 'main' into a single file.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173756 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/CXX/basic/basic.start/basic.start.main/p2.cpp