public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/68703] __attribute__((vector_size(N))) template member confusion
       [not found] <bug-68703-4@http.gcc.gnu.org/bugzilla/>
@ 2020-11-10 23:52 ` ncm at cantrip dot org
  2021-05-04 12:31 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: ncm at cantrip dot org @ 2020-11-10 23:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68703

--- Comment #9 from ncm at cantrip dot org ---
This bug appears not to manifest in g++-8, 9, and 10.

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

* [Bug c++/68703] __attribute__((vector_size(N))) template member confusion
       [not found] <bug-68703-4@http.gcc.gnu.org/bugzilla/>
  2020-11-10 23:52 ` [Bug c++/68703] __attribute__((vector_size(N))) template member confusion ncm at cantrip dot org
@ 2021-05-04 12:31 ` rguenth at gcc dot gnu.org
  2021-05-04 19:27 ` ncm at cantrip dot org
  2024-01-04 11:46 ` rsandifo at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-04 12:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68703

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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

* [Bug c++/68703] __attribute__((vector_size(N))) template member confusion
       [not found] <bug-68703-4@http.gcc.gnu.org/bugzilla/>
  2020-11-10 23:52 ` [Bug c++/68703] __attribute__((vector_size(N))) template member confusion ncm at cantrip dot org
  2021-05-04 12:31 ` rguenth at gcc dot gnu.org
@ 2021-05-04 19:27 ` ncm at cantrip dot org
  2024-01-04 11:46 ` rsandifo at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: ncm at cantrip dot org @ 2021-05-04 19:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68703

--- Comment #10 from ncm at cantrip dot org ---
(In reply to ncm from comment #9)
> This bug appears not to manifest in g++-8, 9, and 10.
Of the three code samples in comment 4, the first and 
third fail to compile because N is undefined. What 
code was intended there? It seems like we should check
the corrected versions of those before declaring this 
fixed.

The code sample in example 3 still reports failings in
g++-10.2.

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

* [Bug c++/68703] __attribute__((vector_size(N))) template member confusion
       [not found] <bug-68703-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-05-04 19:27 ` ncm at cantrip dot org
@ 2024-01-04 11:46 ` rsandifo at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2024-01-04 11:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68703

Richard Sandiford <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rsandifo at gcc dot gnu.org

--- Comment #11 from Richard Sandiford <rsandifo at gcc dot gnu.org> ---
FWIW, the following adaption of the original testcase still fails on trunk, but
is accepted by Clang:

template <int N = 4>
struct D {
    using t = int __attribute__((vector_size(N * sizeof(int))));
    t v;
    int f1() { return this->v[N-1]; }
    int f2() { return v[N-1]; }
};

int main(int ac, char**)
{
  D<> d = { { ac } };
  return d.f1() + d.f2();
}

Same with a typedef instead of "using".  But that's probably just another
instance of PR88600/PR58855.

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

end of thread, other threads:[~2024-01-04 11:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-68703-4@http.gcc.gnu.org/bugzilla/>
2020-11-10 23:52 ` [Bug c++/68703] __attribute__((vector_size(N))) template member confusion ncm at cantrip dot org
2021-05-04 12:31 ` rguenth at gcc dot gnu.org
2021-05-04 19:27 ` ncm at cantrip dot org
2024-01-04 11:46 ` rsandifo at gcc dot gnu.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).