Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed: (StartColNo <= EndColNo && "Trying to highlight whitespace??"), function highlightRange, file llvm/tools/clang/lib/Frontend/TextDiagnostic.cpp, line 973. #16713

Closed
llvmbot opened this issue Jun 16, 2013 · 2 comments
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Jun 16, 2013

Bugzilla Link 16339
Resolution FIXED
Resolved on Jun 16, 2013 00:06
Version trunk
OS FreeBSD
Reporter LLVM Bugzilla Contributor
CC @zygoloid

Extended Description

  1. Source file (w.h):

#if !defined H
#define H_
#endif

  1. Command line:

clang -E w.h

  1. Output:

w.h:1:4: warning: 'H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]
Assertion failed: (StartColNo <= EndColNo && "Trying to highlight whitespace??"), function highlightRange, file /path/to/llvm-src/llvm/tools/clang/lib/Frontend/TextDiagnostic.cpp, line 973.
Stack dump:
0. Program arguments: /path/to/installation/clang -cc1 -triple i386-unknown-freebsd10.0 -E -disable-free -main-file-name w.h -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu i486 -target-linker-version 2.17.50 -resource-dir /path/to/installation/bin/../lib/clang/3.4 -fdebug-compilation-dir /dir1/dir2 -ferror-limit 19 -fmessage-length 255 -mstackrealign -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o - -x c-header w.h
clang: error: unable to execute command: Abort trap (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.4 (trunk 184040)
Target: i386-unknown-freebsd10.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Abort trap (core dumped)
clang: note: diagnostic msg: Error generating preprocessed source(s).

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jun 16, 2013

See also bug 15741.

@zygoloid
Copy link
Mannequin

zygoloid mannequin commented Jun 16, 2013

Fixed in r184054.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

1 participant