* c-decl.c (grokdeclarator): Call error_at instead of error and pass
LOC to it.
From-SVN: r226807
+2015-08-12 Marek Polacek <polacek@redhat.com>
+
+ * c-decl.c (grokdeclarator): Call error_at instead of error and pass
+ LOC to it.
+
2015-08-03 Marek Polacek <polacek@redhat.com>
PR c/67088
if (type_quals & TYPE_QUAL_ATOMIC)
{
if (name)
- error ("bit-field %qE has atomic type", name);
+ error_at (loc, "bit-field %qE has atomic type", name);
else
- error ("bit-field has atomic type");
+ error_at (loc, "bit-field has atomic type");
type_quals &= ~TYPE_QUAL_ATOMIC;
}
}