public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100766] New: Template type deduction fails with vector extensions
@ 2021-05-26 11:10 chris.a.ferguson at gmail dot com
  2021-05-26 11:26 ` [Bug c++/100766] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: chris.a.ferguson at gmail dot com @ 2021-05-26 11:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100766
           Summary: Template type deduction fails with vector extensions
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chris.a.ferguson at gmail dot com
  Target Milestone: ---

The following is a minimum example that fails to compile with GCC, but succeeds
with Clang and Intel compilers.

template <typename T>
using vec __attribute__((__vector_size__(32))) = T;

template <typename T>
vec<T> increment(vec<T> x)
{
    return x + 1;
}

vec<int> test_works(vec<int> x)
{
    return increment<int>(x);
}

vec<int> test_fails(vec<int> x)
{
    return increment(x);
}

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

* [Bug c++/100766] Template type deduction fails with vector extensions
  2021-05-26 11:10 [Bug c++/100766] New: Template type deduction fails with vector extensions chris.a.ferguson at gmail dot com
@ 2021-05-26 11:26 ` redi at gcc dot gnu.org
  2021-05-26 11:54 ` chris.a.ferguson at gmail dot com
  2021-08-12 14:49 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2021-05-26 11:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Is this a duplicate of PR 100765 ?

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

* [Bug c++/100766] Template type deduction fails with vector extensions
  2021-05-26 11:10 [Bug c++/100766] New: Template type deduction fails with vector extensions chris.a.ferguson at gmail dot com
  2021-05-26 11:26 ` [Bug c++/100766] " redi at gcc dot gnu.org
@ 2021-05-26 11:54 ` chris.a.ferguson at gmail dot com
  2021-08-12 14:49 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: chris.a.ferguson at gmail dot com @ 2021-05-26 11:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from chris.a.ferguson at gmail dot com ---
(In reply to Jonathan Wakely from comment #1)
> Is this a duplicate of PR 100765 ?

Yes, this seems to be the same exact issue.

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

* [Bug c++/100766] Template type deduction fails with vector extensions
  2021-05-26 11:10 [Bug c++/100766] New: Template type deduction fails with vector extensions chris.a.ferguson at gmail dot com
  2021-05-26 11:26 ` [Bug c++/100766] " redi at gcc dot gnu.org
  2021-05-26 11:54 ` chris.a.ferguson at gmail dot com
@ 2021-08-12 14:49 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-12 14:49 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 100765.

*** This bug has been marked as a duplicate of bug 100765 ***

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

end of thread, other threads:[~2021-08-12 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 11:10 [Bug c++/100766] New: Template type deduction fails with vector extensions chris.a.ferguson at gmail dot com
2021-05-26 11:26 ` [Bug c++/100766] " redi at gcc dot gnu.org
2021-05-26 11:54 ` chris.a.ferguson at gmail dot com
2021-08-12 14:49 ` pinskia 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).