public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35758]  New: [4.3/4.4 Regression] vector_size attribute lost in function arguments for templates
@ 2008-03-29 18:45 pinskia at gcc dot gnu dot org
  2008-03-29 18:46 ` [Bug c++/35758] " pinskia at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-29 18:45 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

The following testcase used to work in 4.1.1 but no longer does:

#define vector __attribute__((vector_size(16) ))
template<int INDEX>
vector signed int MyFunction(vector float value)  {}

template<int>
void MyFunction(float ){}

int main()
{
    vector float myVector;
    float myFloat;
    MyFunction<1>(myVector);
    MyFunction<1>(myFloat);
}

---- CUT ----
We get:
vector14.C: In function ‘int main()’:
vector14.C:12: error: no matching function for call to ‘MyFunction(float
__vector__&)’
vector14.C:13: error: call of overloaded ‘MyFunction(float&)’ is ambiguous
vector14.C:3: note: candidates are: int MyFunction(float) [with int INDEX = 1]
vector14.C:6: note:                 void MyFunction(float) [with int
<anonymous> = 1]


-- 
           Summary: [4.3/4.4 Regression] vector_size attribute lost in
                    function arguments for templates
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-11-14 16:39 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-29 18:45 [Bug c++/35758] New: [4.3/4.4 Regression] vector_size attribute lost in function arguments for templates pinskia at gcc dot gnu dot org
2008-03-29 18:46 ` [Bug c++/35758] " pinskia at gcc dot gnu dot org
2008-03-29 18:47 ` pinskia at gcc dot gnu dot org
2008-03-29 18:48 ` pinskia at gcc dot gnu dot org
2008-03-29 18:50 ` pinskia at gcc dot gnu dot org
2008-03-29 18:56 ` rguenth at gcc dot gnu dot org
2008-03-31  0:17 ` pinskia at gcc dot gnu dot org
2008-03-31  0:19 ` pinskia at gcc dot gnu dot org
2008-03-31 11:11 ` jakub at gcc dot gnu dot org
2008-04-01 13:32 ` jakub at gcc dot gnu dot org
2008-04-03 10:24 ` jakub at gcc dot gnu dot org
2008-04-03 11:29 ` jakub at gcc dot gnu dot org
2008-04-04 18:11 ` jason at redhat dot com
2008-04-04 18:18 ` pinskia at gcc dot gnu dot org
2008-04-04 19:03 ` pinskia at gcc dot gnu dot org
2008-04-07 10:53 ` jakub at gcc dot gnu dot org
2008-04-22  9:49 ` jakub at gcc dot gnu dot org
2008-04-24 16:31 ` jakub at gcc dot gnu dot org
2008-04-24 16:33 ` jakub at gcc dot gnu dot org
2008-04-24 18:49 ` [Bug c++/35758] " jakub at gcc dot gnu dot org
2008-06-06 15:04 ` rguenth at gcc dot gnu dot org
2008-07-04 19:42 ` jsm28 at gcc dot gnu dot org
2008-11-14 16:39 ` jason 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).