public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/51654] New: C++ preprocessor bug with -maltivec and typedefs involving 'vector'
@ 2011-12-22 15:15 mathias at gaunard dot com
  2011-12-22 15:28 ` [Bug target/51654] " mathias at gaunard dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mathias at gaunard dot com @ 2011-12-22 15:15 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-20 14:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-22 15:15 [Bug target/51654] New: C++ preprocessor bug with -maltivec and typedefs involving 'vector' mathias at gaunard dot com
2011-12-22 15:28 ` [Bug target/51654] " mathias at gaunard dot com
2011-12-22 15:44 ` redi at gcc dot gnu.org
2011-12-22 16:05 ` mathias at gaunard dot com
2011-12-22 18:45 ` pinskia at gcc dot gnu.org
2011-12-22 18:58 ` mathias at gaunard dot com
2013-06-20 14:36 ` win_wa at gmx dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).