------- Comment #8 from aoliva at gcc dot gnu dot org 2009-11-18 20:05 ------- We used to do such things, using pointers rather than UIDs even, and I fixed a number of such issues to avoid codegen differences. But hey, if you could prove that a DECL uid would never affect decisions taken by the compiler, including decisions that might depend on the order in which you perform similar tests over difference pieces of code, more power to you, don't let me stand on your way. Bonus points if you can devise a way to avoid such dependences on UIDs from being accidentally introduced at a later time.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42088