[LLVMbugs] [Bug 12814] New: hangs in TextDiagnostic::buildFixItInsertionLine on invalid input

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 13 21:26:42 PDT 2012


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

             Bug #: 12814
           Summary: hangs in TextDiagnostic::buildFixItInsertionLine on
                    invalid input
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hfinkel at anl.gov
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8546
  --> http://llvm.org/bugs/attachment.cgi?id=8546
reduced test case (provided by Craig Schroeder)

When running clang trunk on the provided input file, clang produces:

t9.c:1:25: error: expected member name or ';' after declaration specifiers
typedef union {union wai<U+00C0> * a;} b __attribute__
((__transparent_union__));
               ~~~~~    ^
t9.c:1:16: error: field has incomplete type 'union wai'
typedef union {union wai<U+00C0> * a;} b __attribute__
((__transparent_union__));
               ^
t9.c:1:22: note: forward declaration of 'union wai'
typedef union {union wai<U+00C0> * a;} b __attribute__
((__transparent_union__));
                     ^
t9.c:1:25: error: expected ';' at end of declaration list

and then hangs.

-- 
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