<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 --- - local labels in gtest-death-test-internal.h are not compiled by gcc-5.0"
   href="http://llvm.org/bugs/show_bug.cgi?id=22332">22332</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>local labels in gtest-death-test-internal.h are not compiled by gcc-5.0
          </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>alserkli@inbox.ru
          </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>Created <span class=""><a href="attachment.cgi?id=13734" name="attach_13734" title="[PATCH] use local labels instead of __LINE__">attachment 13734</a> <a href="attachment.cgi?id=13734&action=edit" title="[PATCH] use local labels instead of __LINE__">[details]</a></span>
[PATCH] use local labels instead of __LINE__

Compilation with gcc (GCC) 5.0.0 20150126 of trunk gives an error in expansion
of EXPECT_DEATH(VariantValue(VariantMatcher::SingleMatcher(varDecl())) at
llvm/tools/clang/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp:149 due to
the use of __LINE__ in
utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h to
create local labels: in new gcc __LINE__ is replaced with different values and
thus the labels do not match [1].

Attached patch solves the problem by using a local label instead of __LINE__.

[1] <<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64803">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64803</a>></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>