<html>
    <head>
      <base href="https://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(270823:273743): Crash on invalid if"
   href="https://llvm.org/bugs/show_bug.cgi?id=28388">28388</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression(270823:273743): Crash on invalid if
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>C++
          </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>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>thakis@thakis:/tmp$ cat KeyboardEventManager-7781f5.cpp 
#define errno *__errno_location
int fn1() {
    if (errno;
thakis@thakis:/tmp$ ~/src/llvm-build/bin/clang -c
KeyboardEventManager-7781f5.cpp 
KeyboardEventManager-7781f5.cpp:3:9: error: use of undeclared identifier
'__errno_location'
    if (errno;
        ^
KeyboardEventManager-7781f5.cpp:1:16: note: expanded from macro 'errno'
#define errno *__errno_location
               ^
KeyboardEventManager-7781f5.cpp:3:14: error: expected ')'
    if (errno;
             ^
KeyboardEventManager-7781f5.cpp:3:8: note: to match this '('
    if (errno;
       ^
#0 0x0000000001b8a5d5 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x1b8a5d5)
#1 0x0000000001b88236 llvm::sys::RunSignalHandlers()
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x1b88236)
#2 0x0000000001b88461 SignalHandler(int)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x1b88461)
#3 0x00007f9def437330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x0000000002feab69 clang::Expr::getExprLoc() const
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x2feab69)
#5 0x0000000002b0ae62 clang::Sema::ActOnIfStmt(clang::SourceLocation, bool,
clang::Sema::ConditionResult, clang::Stmt*, clang::SourceLocation,
clang::Stmt*)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x2b0ae62)
#6 0x0000000002671a00 clang::Parser::ParseIfStatement(clang::SourceLocation*)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x2671a00)
#7 0x000000000266f1fb
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x266f1fb)
#8 0x000000000266f71d
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x266f71d)
#9 0x0000000002672be9 clang::Parser::ParseCompoundStatementBody(bool)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x2672be9)
#10 0x0000000002674d5f clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x2674d5f)
#11 0x0000000002602449
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x2602449)
#12 0x000000000261f370 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&,
unsigned int, clang::SourceLocation*, clang::Parser::ForRangeInit*)
(/usr/local/google/home/thakis/src/llvm-build/bin/clang-3.8+0x261f370)</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>