public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101498] New: gcc accepts template code with 'auto' as subtype
@ 2021-07-18 11:34 fchelnokov at gmail dot com
2021-07-24 3:14 ` [Bug c++/101498] " pinskia at gcc dot gnu.org
2021-08-02 9:31 ` redi at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: fchelnokov at gmail dot com @ 2021-07-18 11:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101498
Bug ID: 101498
Summary: gcc accepts template code with 'auto' as subtype
Product: gcc
Version: 11.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: fchelnokov at gmail dot com
Target Milestone: ---
The code as follows:
```
template <typename T> struct S;
void foo(S<auto>);
```
is ill-formed and must be rejected, but gcc accepts it:
https://gcc.godbolt.org/z/bMof1xsEa
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/101498] gcc accepts template code with 'auto' as subtype
2021-07-18 11:34 [Bug c++/101498] New: gcc accepts template code with 'auto' as subtype fchelnokov at gmail dot com
@ 2021-07-24 3:14 ` pinskia at gcc dot gnu.org
2021-08-02 9:31 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-24 3:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101498
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-07-24
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Depends on| |96464
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Most likely a dup of bug 96464.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96464
[Bug 96464] GCC accepts 'auto' in template argument
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/101498] gcc accepts template code with 'auto' as subtype
2021-07-18 11:34 [Bug c++/101498] New: gcc accepts template code with 'auto' as subtype fchelnokov at gmail dot com
2021-07-24 3:14 ` [Bug c++/101498] " pinskia at gcc dot gnu.org
@ 2021-08-02 9:31 ` redi at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2021-08-02 9:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101498
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Definitely a dup.
*** This bug has been marked as a duplicate of bug 96464 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-08-02 9:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18 11:34 [Bug c++/101498] New: gcc accepts template code with 'auto' as subtype fchelnokov at gmail dot com
2021-07-24 3:14 ` [Bug c++/101498] " pinskia at gcc dot gnu.org
2021-08-02 9:31 ` redi 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).