This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13927] [3.4/3.5 Regression] duplicated error message on bad redeclaration of anon union


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]