Re: [C++ Patch/RFC] PR 60389

2014-03-11 Thread Jason Merrill
OK. Jason

Re: [C++ Patch/RFC] PR 60389

2014-03-11 Thread Paolo Carlini
Hi, On 03/11/2014 02:10 PM, Jason Merrill wrote: On 03/11/2014 08:03 AM, Paolo Carlini wrote: + if (DECL_INHERITED_CTOR_BASE (fun) + && TREE_CODE (fun) == TEMPLATE_DECL) +{ + ret = false; + if (complain) +error ("inherited constructors inherit % from " + "the d

Re: [C++ Patch/RFC] PR 60389

2014-03-11 Thread Jason Merrill
On 03/11/2014 08:03 AM, Paolo Carlini wrote: + if (DECL_INHERITED_CTOR_BASE (fun) + && TREE_CODE (fun) == TEMPLATE_DECL) +{ + ret = false; + if (complain) + error ("inherited constructors inherit % from " + "the designated base"); +} To correct my word

Re: [C++ Patch/RFC] PR 60389

2014-03-11 Thread Paolo Carlini
Hi, On 03/07/2014 06:36 PM, Jason Merrill wrote: Inherited constructors inherit 'constexpr' from the designated base; B::B isn't constexpr because A::A isn't, and we should say that at the beginning of is_valid_constexpr_fn. Ok, then something like the below? (passes testing) Thanks, Paolo.

Re: [C++ Patch/RFC] PR 60389

2014-03-07 Thread Jason Merrill
Inherited constructors inherit 'constexpr' from the designated base; B::B isn't constexpr because A::A isn't, and we should say that at the beginning of is_valid_constexpr_fn. Jason

[C++ Patch/RFC] PR 60389

2014-03-04 Thread Paolo Carlini
Hi, this regression is just an ICE on invalid, but I'm finding it somewhat tricky. Let's see if I can explain clearly enough what I figured out so far. The problem manifests itself when is_valid_constexpr_fn is called by explain_invalid_constexpr_fn with a TEMPLATE_DECL (the inherited templa