http://llvm.org/bugs/show_bug.cgi?id=15709

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to