[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
declaration after label
From: |
Collin Funk |
Subject: |
declaration after label |
Date: |
Wed, 3 Apr 2024 15:30:53 -0700 |
User-agent: |
Mozilla Thunderbird |
On 4/3/24 2:33 PM, Bruno Haible wrote:
> It has a syntax error: With clang and with GCC versions < 11, it is invalid
> to put a declaration after a label. See:
Good catch.
I'm assuming that ISO C doesn't allow declarations after labels, which
would explain the null statement (;) fixing it.
Did C23 change this or is it just a compiler extension?
Collin