On Thu, Feb 9, 2012 at 8:44 PM, Eli Friedman <[email protected]> wrote:
> On Thu, Feb 9, 2012 at 6:24 PM, Aaron Ballman <[email protected]> wrote:
>> This patch addresses bug 11684 where illegal function qualifiers are
>> not caught properly when declaring a function pointer or reference
>> inside of a class.  For instance:
>>
>> struct test {
>>  void (*ref)() const;
>> };
>>
>> I mostly reused existing logic to cover the case.  I've also included
>> some test cases to exercise the fix.
>
> We shouldn't allowing forming the type "pointer to const-qualified
> function" in the first place... tracking down all the places we use a
> type is completely ridiculous.

That's fair -- I'll look into taking care of it at the declaration site.

Thanks!

~Aaron

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to