<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Assertion `StartColNo <= EndColNo && "Trying to highlight whitespace??"' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=20413">20413</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `StartColNo <= EndColNo && "Trying to highlight whitespace??"' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>regehr@cs.utah.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>regehr@regehr-M51AC:~/tmp/build/reduce2$ cat small.cpp
struct {      template < _Alloc2 > static  enable_if ;       enable_if <   


regehr@regehr-M51AC:~/tmp/build/reduce2$ clang -v
clang version 3.5.0 (trunk 213726)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.2
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64


regehr@regehr-M51AC:~/tmp/build/reduce2$ clang++ -c small.cpp
small.cpp:1:26: error: unknown type name '_Alloc2'
struct {      template < _Alloc2 > static  enable_if ;       enable_if <   
                         ^
small.cpp:1:44: error: C++ requires a type specifier for all declarations
struct {      template < _Alloc2 > static  enable_if ;       enable_if <   
                                   ~~~~~~  ^
small.cpp:1:44: error: static data member 'enable_if' not allowed in anonymous
struct
small.cpp:1:44: warning: variable templates are a C++1y extension
[-Wc++1y-extensions]
small.cpp:1:76: error: expected expression
struct {      template < _Alloc2 > static  enable_if ;       enable_if <   
                                                                           ^
small.cpp:1:76: error: expected member name or ';' after declaration specifiers
clang:
/home/regehr/z/compiler-source/llvm/tools/clang/lib/Frontend/TextDiagnostic.cpp:969:
void highlightRange(const clang::CharSourceRange &, unsigned int,
clang::FileID, const <anonymous>::SourceColumnMap &, std::string &, const
clang::SourceManager &, const clang::LangOptions &): Assertion `StartColNo <=
EndColNo && "Trying to highlight whitespace??"' failed.
0  clang           0x000000000273f6c5 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  clang           0x000000000273fe13
2  libpthread.so.0 0x00007fb9a9fe3340
3  libc.so.6       0x00007fb9a8ff6f79 gsignal + 57
4  libc.so.6       0x00007fb9a8ffa388 abort + 328
5  libc.so.6       0x00007fb9a8fefe36
6  libc.so.6       0x00007fb9a8fefee2
7  clang           0x000000000076754f
8  clang           0x000000000076132b
clang::DiagnosticRenderer::emitDiagnostic(clang::SourceLocation,
clang::DiagnosticsEngine::Level, llvm::StringRef,
llvm::ArrayRef<clang::CharSourceRange>, llvm::ArrayRef<clang::FixItHint>,
clang::SourceManager const*, llvm::PointerUnion<clang::Diagnostic const*,
clang::StoredDiagnostic const*>) + 1739
9  clang           0x000000000072bea5
clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
clang::Diagnostic const&) + 1381
10 clang           0x00000000016ad688
clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 616
11 clang           0x00000000016a85ca
clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) + 90
12 clang           0x0000000000ad38b2
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 3858
13 clang           0x0000000000ad1da7
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 1095
14 clang           0x0000000000ae4e0f
clang::Parser::ParseCXXMemberDeclaratorBeforeInitializer(clang::Declarator&,
clang::VirtSpecifiers&, clang::ActionResult<clang::Expr*, true>&,
clang::Parser::LateParsedAttrList&) + 47
15 clang           0x0000000000ae6000
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::ParsingDeclRAIIObject*) + 3856
16 clang           0x0000000000ae35bb
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) + 4331
17 clang           0x0000000000ae1717
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&) + 8263
18 clang           0x0000000000ac4a96
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 2966
19 clang           0x0000000000ab5280
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 64
20 clang           0x0000000000ab4f33
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 403
21 clang           0x0000000000ab4016
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3030
22 clang           0x0000000000ab3349
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 505
23 clang           0x0000000000aaf040 clang::ParseAST(clang::Sema&, bool, bool)
+ 256
24 clang           0x00000000008d0a46 clang::CodeGenAction::ExecuteAction() +
198
25 clang           0x00000000006fde1e clang::FrontendAction::Execute() + 62
26 clang           0x00000000006d3223
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 867
27 clang           0x00000000006b70c9
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3065
28 clang           0x00000000006ae511 cc1_main(char const**, char const**, char
const*, void*) + 657
29 clang           0x00000000006b4f09 main + 9241
30 libc.so.6       0x00007fb9a8fe1ec5 __libc_start_main + 245
31 clang           0x00000000006ae1bd
Stack dump:
0.    Program arguments:
/home/regehr/z/compiler-install/llvm-r213726-install/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
small.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -target-linker-version 2.24 -dwarf-column-info
-coverage-file /home/regehr/tmp/build/reduce2/small.o -resource-dir
/home/regehr/z/compiler-install/llvm-r213726-install/bin/../lib/clang/3.5.0
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem /usr/local/include -internal-isystem
/home/regehr/z/compiler-install/llvm-r213726-install/bin/../lib/clang/3.5.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir /home/regehr/tmp/build/reduce2
-ferror-limit 19 -fmessage-length 100 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
small.o -x c++ small.cpp 
1.    <eof> parser at end of file
2.    small.cpp:1:1: parsing struct/union/class body
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.0 (trunk 213726)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/small-e720b1.cpp
clang: note: diagnostic msg: /tmp/small-e720b1.sh
clang: note: diagnostic msg: 

********************
regehr@regehr-M51AC:~/tmp/build/reduce2$</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>