Re: [PR c++/84596] implicit conv in static assert

2018-03-01 Thread Alexandre Oliva
On Mar 1, 2018, Marek Polacek wrote: > Here's my take on this; Alex, sorry for interfering. No worries, thanks a lot for taking care of this! -- Alexandre Oliva, freedom fighterhttp://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSF

Re: [PR c++/84596] implicit conv in static assert

2018-03-01 Thread Jason Merrill
On Thu, Mar 1, 2018 at 11:28 AM, Marek Polacek wrote: > On Wed, Feb 28, 2018 at 02:01:06PM -0500, Jason Merrill wrote: >> On Wed, Feb 28, 2018 at 8:57 AM, Marek Polacek wrote: >> > On Wed, Feb 28, 2018 at 09:11:24AM -0300, Alexandre Oliva wrote: >> >> Evaluation of constant expressions, such as t

Re: [PR c++/84596] implicit conv in static assert

2018-03-01 Thread Marek Polacek
On Wed, Feb 28, 2018 at 02:01:06PM -0500, Jason Merrill wrote: > On Wed, Feb 28, 2018 at 8:57 AM, Marek Polacek wrote: > > On Wed, Feb 28, 2018 at 09:11:24AM -0300, Alexandre Oliva wrote: > >> Evaluation of constant expressions, such as those passed to > >> static_assert, ICEd when encountering IM

Re: [PR c++/84596] implicit conv in static assert

2018-02-28 Thread Jason Merrill
On Wed, Feb 28, 2018 at 8:57 AM, Marek Polacek wrote: > On Wed, Feb 28, 2018 at 09:11:24AM -0300, Alexandre Oliva wrote: >> Evaluation of constant expressions, such as those passed to >> static_assert, ICEd when encountering IMPLICIT_CONV_EXPRs. >> >> Handle them like CONVERT_EXPR and NOP_EXPR. >>

Re: [PR c++/84596] implicit conv in static assert

2018-02-28 Thread Marek Polacek
On Wed, Feb 28, 2018 at 09:11:24AM -0300, Alexandre Oliva wrote: > Evaluation of constant expressions, such as those passed to > static_assert, ICEd when encountering IMPLICIT_CONV_EXPRs. > > Handle them like CONVERT_EXPR and NOP_EXPR. > > Regstrapped on x86_64- and i686-linux-gnu. Ok to install