Re: [PATCH] c++: Fix bogus "does not declare anything" warning (PR 66159)

2020-06-17 Thread Jonathan Wakely via Gcc-patches
On 17/06/20 12:56 -0400, Jason Merrill wrote: On 6/17/20 12:49 PM, Jonathan Wakely wrote: On 17/06/20 12:32 -0400, Jason Merrill wrote: On 6/15/20 3:40 PM, Jonathan Wakely wrote: Ping ... G++ gives a bogus warning for 'struct A; using B = struct ::A;' complaining that the elaborated-type-sp

Re: [PATCH] c++: Fix bogus "does not declare anything" warning (PR 66159)

2020-06-17 Thread Jason Merrill via Gcc-patches
On 6/17/20 12:49 PM, Jonathan Wakely wrote: On 17/06/20 12:32 -0400, Jason Merrill wrote: On 6/15/20 3:40 PM, Jonathan Wakely wrote: Ping ... G++ gives a bogus warning for 'struct A; using B = struct ::A;' complaining that the elaborated-type-specifier doesn't declare anything. That's true,

Re: [PATCH] c++: Fix bogus "does not declare anything" warning (PR 66159)

2020-06-17 Thread Jonathan Wakely via Gcc-patches
On 17/06/20 12:32 -0400, Jason Merrill wrote: On 6/15/20 3:40 PM, Jonathan Wakely wrote: Ping ... G++ gives a bogus warning for 'struct A; using B = struct ::A;' complaining that the elaborated-type-specifier doesn't declare anything. That's true, but it's not trying to declare struct ::A, ju

Re: [PATCH] c++: Fix bogus "does not declare anything" warning (PR 66159)

2020-06-17 Thread Jason Merrill via Gcc-patches
On 6/15/20 3:40 PM, Jonathan Wakely wrote: Ping ... G++ gives a bogus warning for 'struct A; using B = struct ::A;' complaining that the elaborated-type-specifier doesn't declare anything. That's true, but it's not trying to declare struct ::A, just refer to it unambiguously. Do not emit the w

[PATCH] c++: Fix bogus "does not declare anything" warning (PR 66159)

2020-06-15 Thread Jonathan Wakely via Gcc-patches
Ping ... G++ gives a bogus warning for 'struct A; using B = struct ::A;' complaining that the elaborated-type-specifier doesn't declare anything. That's true, but it's not trying to declare struct ::A, just refer to it unambiguously. Do not emit the warning unless we're actually parsing a declar

[PATCH] c++: Fix bogus "does not declare anything" warning (PR 66159)

2020-05-27 Thread Jonathan Wakely via Gcc-patches
G++ gives a bogus warning for 'struct A; using B = struct ::A;' complaining that the elaborated-type-specifier doesn't declare anything. That's true, but it's not trying to declare struct ::A, just refer to it unambiguously. Do not emit the warning unless we're actually parsing a declaration. This