This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13927] [3.4/3.5 Regression] duplicated error message on bad redeclaration of anon union
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Feb 2004 02:23:35 -0000
- Subject: [Bug c++/13927] [3.4/3.5 Regression] duplicated error message on bad redeclaration of anon union
- References: <20040130062339.13927.mec.gnu@mindspring.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-02-14 02:23 -------
I fixed the main regression, which was the unreadable error message. Now it
says:
pr13927.cc:12: error: `double alpha' redeclared as different kind of symbol
pr13927.cc:11: error: previous declaration of `int alpha'
pr13927.cc:12: error: declaration of `double alpha'
pr13927.cc:11: error: conflicts with previous declaration `int alpha'
The duplicated error message problem was discussed on gcc-patches as a followup
to my patch. Problem is, I don't fully understand that code, so I'm leaving
this bug to someone else. I updated the summary to reflect the new status.
The testcase (g++.dg/other/error8.C) already checks for the double diagnostic,
and it's currently xfailed.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|giovannibajo at libero dot |unassigned at gcc dot gnu
|it |dot org
Status|ASSIGNED |NEW
Keywords|patch |
Summary|[3.4/3.5 Regression] |[3.4/3.5 Regression]
|confusing error message on |duplicated error message on
|bad redeclaration of anon |bad redeclaration of anon
|union |union
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13927