tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] semicolon after struct closing braces


From: Christian Jullien
Subject: Re: [Tinycc-devel] semicolon after struct closing braces
Date: Sat, 15 Mar 2014 10:30:57 +0100

Hi, semicolon is not superfluous because you’re able to define an object after structure definition. It allows you for example to define anonymous structure like;

 

struct {

int x;

int y;

} myobj ;

 

Semicolon is there to say, definition is done AND I don’t define variable of this type right now.

 

From: address@hidden [mailto:address@hidden On Behalf Of mobi phil
Sent: samedi 15 mars 2014 10:04
To: address@hidden
Subject: [Tinycc-devel] semicolon after struct closing braces

 

Hi,

 

tcc fails to detect error in the following simple code:

 

struct A {} int i;

 

Somewhere I agree that semicolon is superfluous after the

closing brace, but the standard requires semicolon.

 

 

regards,

mobiphil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]