public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Followup to PR/2288
@ 2003-04-17 21:06 Krzysztof Parzyszek
  0 siblings, 0 replies; only message in thread
From: Krzysztof Parzyszek @ 2003-04-17 21:06 UTC (permalink / raw)
  To: gcc

Maybe it's a known issue, but I just found out that problem described in
PR/2288 (wrong scope for symbols declared in for-loop header) also applies
to variables declared in `if' and `switch'.  The following code compiles:

void foo () {
    if (int a = 1) int a;
    switch (int b = 1) int b;
}


Krzysztof

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-17 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-17 21:06 Followup to PR/2288 Krzysztof Parzyszek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).