[LLVMbugs] [Bug 15709] New: incorrect recovery after -> versus . correction for template name

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 8 21:38:13 PDT 2013


            Bug ID: 15709
           Summary: incorrect recovery after -> versus . correction for
                    template name
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

lib/Sema/SemaDeclCXX.cpp:7712:24: error: no member named 'castAs' in
'clang::QualType'; did
 you mean to use '->' instead of '.'?
    return Map[CtorType.castAs<FunctionProtoType>()].getEntry(SemaRef, Ctor);
lib/Sema/SemaDeclCXX.cpp:7712:32: error: 'FunctionProtoType' does not refer to
a value
    return Map[CtorType.castAs<FunctionProtoType>()].getEntry(SemaRef, Ctor);
include/clang/Sema/Sema.h:105:9: note: declared here
  class FunctionProtoType;
lib/Sema/SemaDeclCXX.cpp:7712:51: error: expected expression
    return Map[CtorType.castAs<FunctionProtoType>()].getEntry(SemaRef, Ctor);

The first diagnostic is great. The second and third are terrible, and indicate
that we have not recovered as the fixit on the first diagnostic indicates.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130409/13ba6f0f/attachment.html>

More information about the llvm-bugs mailing list