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++/6938: Conflicting redefinition is accepted


>Number:         6938
>Category:       c++
>Synopsis:       Conflicting redefinition is accepted
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 05 13:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Rene Fonseca
>Release:        gcc-3.1, gcc-3.0.4
>Organization:
>Environment:
Linux, Solaris, Cygwin (Windows 2000)
>Description:
An error should be generated for the following code at the second definition of MyName.

> >>>

namespace MyName {};
class MyName {}; // error should be generated here

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