[LLVMbugs] [Bug 14591] New: Windows newlines in doxygen comments cause failed assertion in TextDiagnostic

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 12 17:51:48 PST 2012


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

             Bug #: 14591
           Summary: Windows newlines in doxygen comments cause failed
                    assertion in TextDiagnostic
           Product: clang
           Version: 3.2
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jchorko+clang at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9691
  --> http://llvm.org/bugs/attachment.cgi?id=9691
Preprocessed file that crashes clang

When compiling with -Wdocumentaion a file with windows newlines (CRLF) clang
3.2 RC3 crashes on some warnings. The same file saved with unix line endings
does not crash clang. Tested on Windows using
clang+llvm-3.2rc3-i386-mingw32-EXPERIMENTAL.tar.bz2. Notice the ugly <U+000D>
in the warning message code fragment.

C:\llvmCore-3.2-rc3.install\bin>clang -Wdocumentation fails.c
fails.c:2:15: warning: empty paragraph passed to '\param' command     
[-Wdocumentation]
 * @param abc<U+000D>
   ~~~~~~~~~~~~~~~~~~^
fails.c:2:11: warning: parameter 'abc' not found in the function declaration   
  [-Wdocumentation]
 * @param abc
          ^~~
fails.c:2:11: note: did you mean 'qwerty'?
Stack dump:
0.      Program arguments: C:/llvmCore-3.2-rc3.install/bin/clang.exe -cc1
-triple i686-w64-mingw32 -S -disable-free -disable-llvm-verifier
-main-file-name fails.c -mrelocation-model static -mdisable-fp-elim
-fmath-errno -mconstructor-aliases -target-cpu pentium4 -target-linker-version
2.22 -momit-leaf-frame-pointer -resource-dir
C:/llvmCore-3.2-rc3.install/bin\..\lib\clang\3.2 -fmodule-cache-path
C:\Users\yachoor\AppData\Local\Temp\clang-module-cache -Wdocumentation
-fno-dwarf-directory-asm -ferror-limit 19 -fmessage-length 80 -mstackrealign
-fno-use-cxa-atexit -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -o C:/Users/yachoor/AppData/Local/Temp/fails-540853.s -x c
fails.c
1.      clang: error: clang frontend command failed due to signal (use -v to
see invocation)
clang version 3.2 (tags/RELEASE_32/rc3)
Target: i686-w64-mingw32
Thread model: posix

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