https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101176
Bug ID: 101176 Summary: valgrind error for c-c++-common/builtin-has-attribute.c Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For the gcc testsuite file c-c++-common/builtin-has-attribute.c and a recent build of gcc trunk with valgrind, I get: ./c-c++-common/builtin-has-attribute.c:31:32: error: ‘foobar’ undeclared (first use in this function) 31 | b = __builtin_has_attribute (foobar, aligned); /* { dg-error ".foobar . \(undeclared|was not declared\)" } */ | ^~~~~~ ==104199== Use of uninitialised value of size 8 ==104199== at 0x16EDF70: htab_find_slot_with_hash (hashtab.c:654) ==104199== by 0x169B7CD: get_combined_adhoc_loc(line_maps*, unsigned int, sou rce_range, void*) (line-map.c:208) Since this valgrind error is for C code with errors in it, I think this is reduced priority.