[LLVMbugs] [Bug 15043] New: -Wdocumentation crash with invalid typedef

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 22 11:00:06 PST 2013


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

             Bug #: 15043
           Summary: -Wdocumentation crash with invalid typedef
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ptaylor at broadcom.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Encountered a crash while minimising an unrelated bug, on 3.2 release and on
current trunk (173180):

$ cat temp.c

/** @param a foo */
typedef x (*f)(int a);

$ clang -Wdocumentation temp.c

temp.c:2:13: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
typedef x (*f)(int a);
           ~^
temp.c:2:9: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
typedef x (*f)(int a);
~~~~~~~ ^
temp.c:2:11: error: function cannot return function type 'int (int)'
typedef x (*f)(int a);
          ^
0  clang           0x0000000002decd11 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  clang           0x0000000002decf90
2  clang           0x0000000002dec9e6
3  libpthread.so.0 0x00007f7c908388f0
4  clang           0x0000000000bab686
5  clang           0x0000000000bab6a6
6  clang           0x0000000000bab6c6
7  clang           0x0000000000bab7b0
8  clang           0x0000000001dd8dea
clang::comments::Sema::resolveParmVarReference(llvm::StringRef,
llvm::ArrayRef<clang::ParmVarDecl const*>) + 94
9  clang           0x0000000001dd8692
clang::comments::Sema::resolveParamCommandIndexes(clang::comments::FullComment
const*) + 446
10 clang           0x0000000001dd795a
clang::comments::Sema::actOnFullComment(llvm::ArrayRef<clang::comments::BlockContentComment*>)
+ 100
11 clang           0x0000000001dd1e5e
clang::comments::Parser::parseFullComment() + 384
...
clang: error: unable to execute command: Segmentation fault

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