* [Bug c++/69348] alias declarations can not be used inside qualifiers of declarators
[not found] <bug-69348-4@http.gcc.gnu.org/bugzilla/>
@ 2020-12-03 11:30 ` davveston at gmail dot com
2021-08-05 6:21 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: davveston at gmail dot com @ 2020-12-03 11:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69348
David Friberg <davveston at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davveston at gmail dot com
--- Comment #2 from David Friberg <davveston at gmail dot com> ---
Another similar but more common (/less contrived) example, rejects-valid e.g.
for GCC 10.1.0 for all C++ version (-std=c++X with X in {98, 11, 17, 2a/20}).
// https://wandbox.org/permlink/aQpRzgcvAHOihKz5
template<typename T>
struct S {
using type = int;
type f() const;
};
template<typename T>
using type_t = typename S<T>::type;
template <typename T>
type_t<T> S<T>::f() const { }
// error: no declaration matches 'type_t<T> S<T>::f() const'
int main() {}
---
Brought up in
https://stackoverflow.com/questions/65110143/using-typealias-in-place-of-typedef-defined-in-class-in-definition
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/69348] alias declarations can not be used inside qualifiers of declarators
[not found] <bug-69348-4@http.gcc.gnu.org/bugzilla/>
2020-12-03 11:30 ` [Bug c++/69348] alias declarations can not be used inside qualifiers of declarators davveston at gmail dot com
@ 2021-08-05 6:21 ` pinskia at gcc dot gnu.org
2021-08-05 6:22 ` pinskia at gcc dot gnu.org
2021-08-05 10:06 ` davveston at gmail dot com
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05 6:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69348
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |quentin@huot-marchand.fr
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 85127 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/69348] alias declarations can not be used inside qualifiers of declarators
[not found] <bug-69348-4@http.gcc.gnu.org/bugzilla/>
2020-12-03 11:30 ` [Bug c++/69348] alias declarations can not be used inside qualifiers of declarators davveston at gmail dot com
2021-08-05 6:21 ` pinskia at gcc dot gnu.org
@ 2021-08-05 6:22 ` pinskia at gcc dot gnu.org
2021-08-05 10:06 ` davveston at gmail dot com
3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-05 6:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69348
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to David Friberg from comment #2)
> Another similar but more common (/less contrived) example, rejects-valid
> e.g. for GCC 10.1.0 for all C++ version (-std=c++X with X in {98, 11, 17,
> 2a/20}).
This is a different issue and should be filed seperately.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/69348] alias declarations can not be used inside qualifiers of declarators
[not found] <bug-69348-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-08-05 6:22 ` pinskia at gcc dot gnu.org
@ 2021-08-05 10:06 ` davveston at gmail dot com
3 siblings, 0 replies; 4+ messages in thread
From: davveston at gmail dot com @ 2021-08-05 10:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69348
--- Comment #5 from David Friberg <davveston at gmail dot com> ---
(In reply to Andrew Pinski from comment #4)
> (In reply to David Friberg from comment #2)
> > Another similar but more common (/less contrived) example, rejects-valid
> > e.g. for GCC 10.1.0 for all C++ version (-std=c++X with X in {98, 11, 17,
> > 2a/20}).
>
> This is a different issue and should be filed seperately.
Thanks for the prompt Andrew. I filed Bug 101789.
^ permalink raw reply [flat|nested] 4+ messages in thread