|
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 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |