c++/6938: Conflicting redefinition is accepted
fonseca@mip.sdu.dk
fonseca@mip.sdu.dk
Wed Jun 5 13:46:00 GMT 2002
>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:
More information about the Gcc-bugs
mailing list