OK.
Jason
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
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
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.
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
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