[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-04-12 Thread dgregor at gcc dot gnu dot org


--- Comment #13 from dgregor at gcc dot gnu dot org  2007-04-12 12:48 
---
Subject: Bug 31078

Author: dgregor
Date: Thu Apr 12 12:47:56 2007
New Revision: 123740

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=123740
Log:
2007-04-12  Douglas Gregor  [EMAIL PROTECTED]

PR c++/31078
PR c++/31103
* c-common.c (c_build_qualified_type): Set canonical type
appropriately.  

2007-04-12  Douglas Gregor  [EMAIL PROTECTED]

PR c++/31078
* g++.dg/other/pr31078.C: New.

Added:
trunk/gcc/testsuite/g++.dg/other/pr31078.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-04-12 Thread dgregor at gcc dot gnu dot org


--- Comment #14 from dgregor at gcc dot gnu dot org  2007-04-12 12:50 
---
Fixed on mainline


-- 

dgregor at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-04-04 Thread dgregor at gcc dot gnu dot org


-- 

dgregor at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dgregor at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Last reconfirmed|2007-03-08 13:10:49 |2007-04-05 04:43:14
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-09 Thread tbm at cyrius dot com


--- Comment #8 from tbm at cyrius dot com  2007-03-09 10:52 ---
I definitely think this should be an error, not a warning.  I only saw this
problem by luck.  I'm compiling the entire Debian archive (ie 7000 packages)
on IA64 with GCC 4.3 and I cannot look at every log file (especially when
the build was successful).  I only noticed this one because the program
failed to compile later on and I looked at the log to see the error.

Anyway, are there any other warning messages like this one?  If so, I can
search
my log files.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-09 Thread tbm at cyrius dot com


--- Comment #9 from tbm at cyrius dot com  2007-03-09 11:21 ---
This warning is really frequent.  I can find 2200 warnings that mention const
and same canonical type node for different types.  Some don't mention
const;
I'll look at them and file separate bugs.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-09 Thread ubizjak at gmail dot com


--- Comment #10 from ubizjak at gmail dot com  2007-03-09 11:22 ---
(In reply to comment #8)

 Anyway, are there any other warning messages like this one?  If so, I can
 search my log files.

Yes, the one reported in PR middle-end/30666.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-09 Thread tbm at cyrius dot com


--- Comment #11 from tbm at cyrius dot com  2007-03-09 12:13 ---
Another problem is that this warning does not always occur, even when I use
the same source and options.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-09 Thread tbm at cyrius dot com


--- Comment #12 from tbm at cyrius dot com  2007-03-09 12:49 ---
PR31103 - same canonical type node for different types with long int
PR31104 - same canonical type node for different types with anonymous


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-08 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
Summary|[4.3 Regression] warning:   |[4.3 Regression] warning:
   |same canonical type node for|same canonical type node for
   |different types |different types with const
   ||strings
   Target Milestone|--- |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-08 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2007-03-08 13:10 ---
Reduced testcase:
char a[1];
void
error (int journal )
{
 const char *b =  journal?a: ;
}


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2007-03-08 13:10:49
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-08 Thread gdr at cs dot tamu dot edu


--- Comment #5 from gdr at cs dot tamu dot edu  2007-03-08 13:20 ---
Subject: Re:  [4.3 Regression] warning: same canonical type node for different
types

manu at gcc dot gnu dot org [EMAIL PROTECTED] writes:

| --- Comment #3 from manu at gcc dot gnu dot org  2007-03-08 11:40 ---
| I think the warning message should be more explicit. It should say: this is a
| compiler bug, please report it, or something similar.

I thought we eventually agreed that it should be a plain internal_error.

Warning is for constructs in user codes, nont compiler internals.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-08 Thread pinskia at gcc dot gnu dot org


--- Comment #6 from pinskia at gcc dot gnu dot org  2007-03-08 17:40 ---
 I thought we eventually agreed that it should be a plain internal_error.

Not until right before the release: 
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01850.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078



[Bug c++/31078] [4.3 Regression] warning: same canonical type node for different types with const strings

2007-03-08 Thread manu at gcc dot gnu dot org


--- Comment #7 from manu at gcc dot gnu dot org  2007-03-08 17:46 ---
(In reply to comment #6)
  I thought we eventually agreed that it should be a plain internal_error.
 
 Not until right before the release: 
 http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01850.html
 

Nevertheless, I think we should mention that this is a bug, please report it,
so early testers would know what is going on.


-- 

manu at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||manu at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31078