[LLVMbugs] [Bug 13155] New: Type gets lost during Parsing

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 20 08:20:25 PDT 2012


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

             Bug #: 13155
           Summary: Type gets lost during Parsing
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hatl at gmx.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


// Simple Test-Code:
class MyClass
{
  Blah myFunction();
};

// Output:

test4.h:3:3: error: unknown type name 'Blah'
  Blah myFunction();

This error is expected as Blah is really not declared.

// getting the Type:
CXXMethodDecl::getResultType::getAsString() = "int", expected: "Blah"
Should not return "int"!

There is no possibility to get the used name "Blah"

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list