[cfe-commits] [PATCH] Illegal qualifiers not caught properly

Aaron Ballman aaron at aaronballman.com
Thu Feb 9 19:40:51 PST 2012


On Thu, Feb 9, 2012 at 8:44 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Thu, Feb 9, 2012 at 6:24 PM, Aaron Ballman <aaron at aaronballman.com> 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




More information about the cfe-commits mailing list