This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: Fix PR 30666 [4.3 Regression]
On 3/29/07, Michael Matz <email@example.com> wrote:
On Thu, 29 Mar 2007, Doug Gregor wrote:
> build_complex_type was placing IDENTIFIER_NODEs into TYPE_NAME, rather
> than TYPE_DECLs as it should have.
That actually is okay. The practice of using TYPE_DECLs in TYPE_NAME even
for non-typedefs is only done in the c++ frontend (at least in the past
that was so, perhaps that has meanwhile also crept into the other
frontends or general code). Normally all common code (including
dwarf2*) deals with TYPE_NAME either being an identifier or a decl.
Having the IDENTIFIER_NODE there was causing a crash somewhere in the
C++ front end, hence the change. Unfortunately, since it was about 3
weeks ago that I worked up the patch, I have no recollection of *what*
failed in the C++ front end :(