<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - [C2x] a label with a declaration should be allowed"
   href="https://bugs.llvm.org/show_bug.cgi?id=50478">50478</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[C2x] a label with a declaration should be allowed
          </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>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>C2x
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>haoxintu@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi all.

I think this is a new feature in C2x but it seems clang still can not pass the
following code.

$cat small.c
int main(){
L: 
    int a = 0;
    return 0;
}

clang complains "error: expected expression", while GCC accepts this well.

In Godbolt: <a href="https://godbolt.org/z/KhdYxrnhf">https://godbolt.org/z/KhdYxrnhf</a>

See also in GCC's implementation: 

<a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100353">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100353</a>

I try to find a dup report but failed, maybe there is a dup case?

Thanks,
Haoxin</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>