[Bug c++/49727] New: Same classes in different files issue.

hordi at ukr dot net gcc-bugzilla@gcc.gnu.org
Wed Jul 13 08:46:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49727

           Summary: Same classes in different files issue.
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hordi@ukr.net


We have 2 classes with the same name in different files. They both are in one
namespace. 
1 class is in .cpp file and another in .h. Using of objects is not intercepts
in different modules.

ex: foo.h contains : namespace A{ class A{}; }, bar.cpp contains: namespace A{
class A{}; }

While running program it is crashed because of use wrong class in foo.cpp in
our case.



More information about the Gcc-bugs mailing list