This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/51654] New: C++ preprocessor bug with -maltivec and typedefs involving 'vector'
- From: "mathias at gaunard dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Dec 2011 15:11:04 +0000
- Subject: [Bug target/51654] New: C++ preprocessor bug with -maltivec and typedefs involving 'vector'
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51654
Bug #: 51654
Summary: C++ preprocessor bug with -maltivec and typedefs
involving 'vector'
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: mathias@gaunard.com
The following C++ code
template<class T>
struct test
{
typedef T::vector vector;
};
when preprocessed using the following command
g++ -maltivec -E test.cpp
generates the following output:
template<class T>
struct test
{
typedef T::vector;
};
Expected output should be the file unchanged.
In particular, this prevents from using significant parts of the Boost C++
libraries with AltiVec enabled.
I'm not sure which is the best place to affect this bug (c++, preprocessor,
target), feel free to move it.
Affecting to target because it seems similar to bug #39558.