Commit 191a6b94 by Marek Polacek Committed by Marek Polacek

c-decl.c (grokdeclarator): Call error_at instead of error and pass LOC to it.

	* c-decl.c (grokdeclarator): Call error_at instead of error and pass
	LOC to it.

From-SVN: r226807
parent 93666a7b
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
......
......@@ -6233,9 +6233,9 @@ grokdeclarator (const struct c_declarator *declarator,
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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment