Reid Kleckner
21525e7fd4
[Sema] Avoid crashing during this-> insertion recovery
...
We get into this bad state when someone defines a new member function
for a class but forgets to add the declaration to the class body.
Calling the new member function from a member function template of the
class will crash during instantiation.
llvm-svn: 248925
2015-09-30 17:30:48 +00:00
Serge Pavlov
074a518f03
Fix to PR16225 (Assert-on-invalid: isa<LabelDecl>(D) && "declaration not instantiated in this scope")
...
Differential Revision: http://llvm-reviews.chandlerc.com/D920
llvm-svn: 188137
2013-08-10 12:00:21 +00:00
Richard Smith
ccf0151b71
Add testcase for PR16134, which no longer crashes with ToT.
...
llvm-svn: 186849
2013-07-22 18:09:32 +00:00
Nico Weber
3c10fb1d8e
Show fixit for unqualified calls to methods of dependent bases
...
when the calling site is a member function template.
Effectively reverts r111675.
llvm-svn: 159004
2012-06-22 16:39:39 +00:00
Nick Lewycky
fe71238b8d
Add a workaround for PR7947, a crash trying to recover from invalid C++ code.
...
llvm-svn: 111675
2010-08-20 20:54:15 +00:00