[PATCH] Fix crash in cleanup attr handling
Alp Toker
alp at nuanti.com
Sat Oct 19 23:24:02 PDT 2013
The reduction got chewed up in my previous mail. Should be:
void c3(int *a) {}
void c3() {}
void t3() {
int v1 __attribute__((cleanup(c3)));
}
On 20/10/2013 07:19, Alp Toker wrote:
> Reduction:
>
> void c3(int *a) {
> void c3() {}
> void t3() {
> int v1 __attribute__((cleanup(c3)));
> }
>
> ResolveSingleFunctionTemplateSpecialization() returns 0 and doesn't emit
> diags unless the expression has template-ids, so we must null check the
> result.
>
> Also add a better diag noting which overloads are causing the problem.
>
--
http://www.nuanti.com
the browser experts
More information about the cfe-commits
mailing list