This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/8548: switch-statement
- From: Frank dot Cornelis at elis dot rug dot ac dot be
- To: gcc-gnats at gcc dot gnu dot org
- Date: 12 Nov 2002 15:46:35 -0000
- Subject: c/8548: switch-statement
- Reply-to: Frank dot Cornelis at elis dot rug dot ac dot be
>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: