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]

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


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.


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