Undefined or undeclared attributes are ignored silently without any error or warning.
Below is an example code which demonstrates this issue.
architecture RTL of top is
--attribute RLOC : string;
attribute RLOC of LUT1_inst1 : label is "X0Y0";
--attribute FOO : string;
attribute FOO of LUT1_inst0 : label is "bar";