[Bug target/51654] New: C++ preprocessor bug with -maltivec and typedefs involving 'vector'

mathias at gaunard dot com gcc-bugzilla@gcc.gnu.org
Thu Dec 22 15:15:00 GMT 2011


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.



More information about the Gcc-bugs mailing list