public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99141] New: Name of deduced type unchecked in deduction guide
@ 2021-02-17 19:11 johelegp at gmail dot com
2021-08-28 23:59 ` [Bug c++/99141] " johelegp at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: johelegp at gmail dot com @ 2021-02-17 19:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99141
Bug ID: 99141
Summary: Name of deduced type unchecked in deduction guide
Product: gcc
Version: 11.0
URL: https://godbolt.org/z/bEhjsc
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: johelegp at gmail dot com
CC: johelegp at gmail dot com
Target Milestone: ---
Context
(https://timsong-cpp.github.io/cppwp/n4861/temp.deduct.guide#nt:deduction-guide):
> deduction-guide:
> explicit-specifieropt template-name ( parameter-declaration-clause ) -> simple-template-id ;
The requirement
(https://timsong-cpp.github.io/cppwp/n4861/temp.deduct.guide#3.sentence-3):
> The template-name shall be the same identifier as the template-name of the simple-template-id.
See https://godbolt.org/z/bEhjsc.
```C++
template<class>struct A;
template<class>using B=A<int>;
A(int)->B<int>;
```
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/99141] Name of deduced type unchecked in deduction guide
2021-02-17 19:11 [Bug c++/99141] New: Name of deduced type unchecked in deduction guide johelegp at gmail dot com
@ 2021-08-28 23:59 ` johelegp at gmail dot com
2021-08-29 0:16 ` pinskia at gcc dot gnu.org
2021-10-17 10:54 ` liarokapis.v at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: johelegp at gmail dot com @ 2021-08-28 23:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99141
Johel Ernesto Guerrero Peña <johelegp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |11.0, 12.0
--- Comment #1 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
Simpler: https://godbolt.org/z/EE9an4Whf.
```C++
template<class T>struct A{A(T){}};
using B=A<int>;
A(int)->B;
A a{0};
```
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/99141] Name of deduced type unchecked in deduction guide
2021-02-17 19:11 [Bug c++/99141] New: Name of deduced type unchecked in deduction guide johelegp at gmail dot com
2021-08-28 23:59 ` [Bug c++/99141] " johelegp at gmail dot com
@ 2021-08-29 0:16 ` pinskia at gcc dot gnu.org
2021-10-17 10:54 ` liarokapis.v at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-29 0:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99141
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-08-29
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/99141] Name of deduced type unchecked in deduction guide
2021-02-17 19:11 [Bug c++/99141] New: Name of deduced type unchecked in deduction guide johelegp at gmail dot com
2021-08-28 23:59 ` [Bug c++/99141] " johelegp at gmail dot com
2021-08-29 0:16 ` pinskia at gcc dot gnu.org
@ 2021-10-17 10:54 ` liarokapis.v at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: liarokapis.v at gmail dot com @ 2021-10-17 10:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99141
Alexandros Liarokapis <liarokapis.v at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |liarokapis.v at gmail dot com
--- Comment #3 from Alexandros Liarokapis <liarokapis.v at gmail dot com> ---
This also affects namespaced-identifiers:
```C++
namespace foo {
template <class T>
struct bar { template <class X> bar(X); };
template <class X>
bar(X) -> foo::bar<int>;
}
```
The above shouldn't compile since the trailing return entity must be a
`simple-template-id`. Passes on every version of GCC so far.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-17 10:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 19:11 [Bug c++/99141] New: Name of deduced type unchecked in deduction guide johelegp at gmail dot com
2021-08-28 23:59 ` [Bug c++/99141] " johelegp at gmail dot com
2021-08-29 0:16 ` pinskia at gcc dot gnu.org
2021-10-17 10:54 ` liarokapis.v at gmail dot com
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).