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

Eli Friedman eli.friedman at gmail.com
Thu Feb 9 18:44:18 PST 2012


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.

-Eli




More information about the cfe-commits mailing list