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: [email protected]
ReportedBy: [email protected]
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.