public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13989] New: C++ method lookup fails for methods returning Altivec types
@ 2004-02-03  4:01 tjw at omnigroup dot com
  2004-02-03  4:21 ` [Bug c++/13989] C++ method lookup fails for methods returning vector types (because of attribute) pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tjw at omnigroup dot com @ 2004-02-03  4:01 UTC (permalink / raw)
  To: gcc-bugs

#include <altivec.h>

class Constants {
    vector unsigned int _pack0;
public:
    Constants() {
        _pack0 = (vector unsigned int){0xdeadbeef, 0xabababab, 0x55555555, 0x12345678};
    };

    inline vector unsigned int deadbeef(void) const {
        return vec_splat(_pack0, 0);
    };
};

vector unsigned int const_deadbeef(Constants &C)
{
    return C.deadbeef();
}


Fails to build with:

% $PREFIX/bin/g++ -maltivec -c -Wall av.cpp -o av.o
av.cpp: In function `unsigned int __vector__ const_deadbeef(Constants&)':
av.cpp:17: error: no matching function for call to `Constants::deadbeef()'
av.cpp:10: note: candidates are: unsigned int __vector__ Constants::deadbeef(const Constants*)

-- 
           Summary: C++ method lookup fails for methods returning Altivec
                    types
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tjw at omnigroup dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.2.0
  GCC host triplet: powerpc-apple-darwin7.2.0
GCC target triplet: powerpc-apple-darwin7.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13989


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

end of thread, other threads:[~2004-09-23 18:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-03  4:01 [Bug c++/13989] New: C++ method lookup fails for methods returning Altivec types tjw at omnigroup dot com
2004-02-03  4:21 ` [Bug c++/13989] C++ method lookup fails for methods returning vector types (because of attribute) pinskia at gcc dot gnu dot org
2004-02-03  4:23 ` pinskia at gcc dot gnu dot org
2004-06-18  4:15 ` pinskia at gcc dot gnu dot org
2004-09-23 18:23 ` cvs-commit at gcc dot gnu dot org
2004-09-23 18:26 ` pinskia at gcc dot gnu dot org
2004-09-23 18:26 ` pinskia at gcc dot gnu dot org
2004-09-23 18:27 ` pinskia at gcc dot gnu dot org

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).