<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 --- - Regression(r159216): Source files with \127 assert"
   href="http://llvm.org/bugs/show_bug.cgi?id=22048">22048</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression(r159216): Source files with \127 assert
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>All
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </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>$ cat test.cc
#error 'avilability'
// Note that this has an ASCII 127 character after the 'v'
$ bin/clang -c test.cc
error: 'avilability'Assertion failed: (TextNormal && "Text highlighted at end
of diagnostic message."), function printWordWrapped, file
/Users/thakis/src/llvm-rw/tools/clang/lib/Frontend/TextDiagnostic.cpp, line
661.
0  clang-3.5                0x00000001095c59c9
llvm::sys::PrintStackTrace(__sFILE*) + 57
1  clang-3.5                0x00000001095c614b SignalHandler(int) + 635
2  libsystem_platform.dylib 0x00007fff872f7f1a _sigtramp + 26
3  libsystem_platform.dylib 0x00007fff5fe7a764 _sigtramp + 3635947620
4  clang-3.5                0x00000001095c5eb6 abort + 22
5  clang-3.5                0x00000001095c5e91 __assert_rtn + 81
6  clang-3.5                0x000000010982203e
clang::TextDiagnostic::printDiagnosticMessage(llvm::raw_ostream&, bool,
llvm::StringRef, unsigned int, unsigned int, bool) + 1054
7  clang-3.5                0x00000001098218fd
clang::TextDiagnostic::emitDiagnosticMessage(clang::SourceLocation,
clang::PresumedLoc, clang::DiagnosticsEngine::Level, llvm::StringRef,
llvm::ArrayRef<clang::CharSourceRange>, clang::SourceManager const*,
llvm::PointerUnion<clang::Diagnostic const*, clang::StoredDiagnostic const*>) +
285
8  clang-3.5                0x00000001097ea8b4
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*>) + 1812
9  clang-3.5                0x0000000109828379
clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
clang::Diagnostic const&) + 1657
10 clang-3.5                0x00000001096a8b54
clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 484
11 clang-3.5                0x00000001096a3134
clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) + 100
12 clang-3.5                0x000000010aa2b281
clang::Preprocessor::HandleUserDiagnosticDirective(clang::Token&, bool) + 449
13 clang-3.5                0x000000010aa246b6
clang::Preprocessor::HandleDirective(clang::Token&) + 1382
14 clang-3.5                0x000000010a9ff321
clang::Lexer::LexTokenInternal(clang::Token&, bool) + 10305
15 clang-3.5                0x000000010a9fb8f0 clang::Lexer::Lex(clang::Token&)
+ 112
16 clang-3.5                0x000000010aa53844
clang::Preprocessor::Lex(clang::Token&) + 68
17 clang-3.5                0x0000000109f362c3 clang::ParseAST(clang::Sema&,
bool, bool) + 195
18 clang-3.5                0x0000000109b8b82b
clang::CodeGenAction::ExecuteAction() + 123
19 clang-3.5                0x00000001097eea83 clang::FrontendAction::Execute()
+ 67
20 clang-3.5                0x00000001097c02fc
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 972
21 clang-3.5                0x000000010982eff5
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4149
22 clang-3.5                0x00000001086bc34c cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1068
23 clang-3.5                0x00000001086baffe main + 11438
24 libdyld.dylib            0x00007fff8a2cf5c9 start + 1
25 libdyld.dylib            0x0000000000000033 start + 1976765035


This is because r159216 added a ToggleHighlight constant that's 127, but it
didn't expect that source files could contain this character.</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>