Kyle Girard <k...@kdmanalytics.com> writes: > Is there anyway in gcc to get a unique id for a type that would be the > same across compilation units? Or would I have to come up with my own > encoding somehow?
I don't know of anything like that in gcc today. The first thing you need to do is define when two types are the "same," a concept which some languages do not define clearly across compilation units. The middle-end more or less has such a meaning today, based on useless_type_conversion_p. Is that the meaning you want? Ian