c/8548: switch-statement
Frank.Cornelis@elis.rug.ac.be
Frank.Cornelis@elis.rug.ac.be
Tue Nov 19 15:26:00 GMT 2002
>Number: 8548
>Category: c
>Synopsis: switch-statement
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Nov 12 07:56:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Frank.Cornelis@elis.rug.ac.be
>Release: 3.2
>Organization:
>Environment:
>Description:
switch (family) {
case PF_LOCAL:
case PF_UNIX:
break;
}
is not a legal statement according to GCC because the macro's evaluate to the same value. This would be true for case-statements with a break in between, not for case-statements handled by the same body. Should be fixed.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list