public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27433] vector template argument is not fully supported in function arguments
[not found] <bug-27433-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-12 14:47 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 14:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27433
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The original issue was fixed, the other issue is similar to PR 57572 so closing
this one.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/27433] vector template argument is not fully supported in function arguments
2006-05-04 17:53 [Bug c++/27433] New: diagnostic for vector template argument is poor pinskia at gcc dot gnu dot org
@ 2008-03-28 23:12 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-28 23:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-03-28 23:11 -------
We actually accept this code now but reject the following code now:
#define __vector __attribute__((vector_size(16)))
template <class A>
void f(A, __vector A, int);
void g(void)
{
__vector int a;
f<int>(1, a, 2);
}
Even though we have the attribute here and don't reject it any more, it gets
lost when instantiating the template.
The testcase in comment #1 works fully correct and we don't lose the attribute
as shown by:
#define __vector __attribute__((vector_size(256)))
template <class A>
struct b
{
__vector A t;
};
typedef int g[sizeof(b<int>) == sizeof(__vector int) ? 1 : -1 ];
CCing Jason since he implemented late attribute handling for 4.3.0.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Keywords|diagnostic |rejects-valid
Summary|diagnostic for vector |vector template argument is
|template argument is poor |not fully supported in
| |function arguments
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27433
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-12 14:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-27433-4@http.gcc.gnu.org/bugzilla/>
2021-08-12 14:47 ` [Bug c++/27433] vector template argument is not fully supported in function arguments pinskia at gcc dot gnu.org
2006-05-04 17:53 [Bug c++/27433] New: diagnostic for vector template argument is poor pinskia at gcc dot gnu dot org
2008-03-28 23:12 ` [Bug c++/27433] vector template argument is not fully supported in function arguments 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).