This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/8548: switch-statement


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]