This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49727] New: Same classes in different files issue.
- From: "hordi at ukr dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Jul 2011 08:45:52 +0000
- Subject: [Bug c++/49727] New: Same classes in different files issue.
- Auto-submitted: auto-generated
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.