Re: C++ PATCH for c++/89511 - ICE with using-declarations and unscoped enumerator

2019-02-27 Thread Jason Merrill
On Wed, Feb 27, 2019 at 1:48 PM Marek Polacek wrote: > > On Wed, Feb 27, 2019 at 01:43:12PM -0500, Jason Merrill wrote: > > On Wed, Feb 27, 2019 at 11:49 AM Marek Polacek wrote: > > > On Wed, Feb 27, 2019 at 10:53:16AM -0500, Jason Merrill wrote: > > > > On 2/26/19 5:13 PM, Marek Polacek wrote: >

Re: C++ PATCH for c++/89511 - ICE with using-declarations and unscoped enumerator

2019-02-27 Thread Marek Polacek
On Wed, Feb 27, 2019 at 01:43:12PM -0500, Jason Merrill wrote: > On Wed, Feb 27, 2019 at 11:49 AM Marek Polacek wrote: > > On Wed, Feb 27, 2019 at 10:53:16AM -0500, Jason Merrill wrote: > > > On 2/26/19 5:13 PM, Marek Polacek wrote: > > > > Here we ICE because the unscoped enum's context is a FUNC

Re: C++ PATCH for c++/89511 - ICE with using-declarations and unscoped enumerator

2019-02-27 Thread Jason Merrill
On Wed, Feb 27, 2019 at 11:49 AM Marek Polacek wrote: > On Wed, Feb 27, 2019 at 10:53:16AM -0500, Jason Merrill wrote: > > On 2/26/19 5:13 PM, Marek Polacek wrote: > > > Here we ICE because the unscoped enum's context is a FUNCTION_DECL, which > > > push_using_decl can't handle. > > > > > > http:/

Re: C++ PATCH for c++/89511 - ICE with using-declarations and unscoped enumerator

2019-02-27 Thread Marek Polacek
On Wed, Feb 27, 2019 at 10:53:16AM -0500, Jason Merrill wrote: > On 2/26/19 5:13 PM, Marek Polacek wrote: > > Here we ICE because the unscoped enum's context is a FUNCTION_DECL, which > > push_using_decl can't handle. > > > > http://www.open-std.org/JTC1/SC22/WG21/docs/cwg_active.html#1742 > > say

Re: C++ PATCH for c++/89511 - ICE with using-declarations and unscoped enumerator

2019-02-27 Thread Jason Merrill
On 2/26/19 5:13 PM, Marek Polacek wrote: Here we ICE because the unscoped enum's context is a FUNCTION_DECL, which push_using_decl can't handle. http://www.open-std.org/JTC1/SC22/WG21/docs/cwg_active.html#1742 says this is well-formed (but the scoped enum case is ill-formed). Nevertheless, the D