public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18166] New: top const stripped in structs for C
@ 2004-10-26 23:24 mrs at apple dot com
2004-10-26 23:27 ` [Bug c/18166] " mrs at apple dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: mrs at apple dot com @ 2004-10-26 23:24 UTC (permalink / raw)
To: gcc-bugs
The following doesn't produce accurate dbx stabs information on powerpc-apple-darwin:
struct ssc { char * const ptr; };
struct ss { char * ptr; };
int main ()
{
struct ssc xssc;
struct ss xss;
}
(gdb) ptype xss
type = struct ss {
char *ptr;
}
(gdb) ptype xssc
type = struct ssc {
char *ptr;
}
http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01872.html has a wrong patch. The corresponding
C++ code works as expected.
Radar 3085329
--
Summary: top const stripped in structs for C
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mrs at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin8.0.0b2
GCC host triplet: powerpc-apple-darwin8.0.0b2
GCC target triplet: powerpc-apple-darwin8.0.0b2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18166
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18166] top const stripped in structs for C
2004-10-26 23:24 [Bug c/18166] New: top const stripped in structs for C mrs at apple dot com
@ 2004-10-26 23:27 ` mrs at apple dot com
2004-10-26 23:30 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mrs at apple dot com @ 2004-10-26 23:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mrs at apple dot com 2004-10-26 23:27 -------
For reference, the C++ version:
struct ssc { char * const ptr;
ssc () :ptr(0) { }
};
struct ss { char * ptr; };
int main ()
{
struct ssc xssc;
struct ss xss;
}
and its output:
(gdb) ptype xss
type = struct ss {
char *ptr;
}
(gdb) ptype xssc
type = class ssc {
public:
char * const ptr;
ssc(ssc const&);
ssc();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18166
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18166] top const stripped in structs for C
2004-10-26 23:24 [Bug c/18166] New: top const stripped in structs for C mrs at apple dot com
2004-10-26 23:27 ` [Bug c/18166] " mrs at apple dot com
@ 2004-10-26 23:30 ` pinskia at gcc dot gnu dot org
2005-01-29 16:31 ` jsm28 at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-26 23:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-26 23:30 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|powerpc-apple-darwin8.0.0b2 |
GCC host triplet|powerpc-apple-darwin8.0.0b2 |
GCC target triplet|powerpc-apple-darwin8.0.0b2 |powerpc-darwin
Keywords| |wrong-debug
Last reconfirmed|0000-00-00 00:00:00 |2004-10-26 23:30:54
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18166
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18166] top const stripped in structs for C
2004-10-26 23:24 [Bug c/18166] New: top const stripped in structs for C mrs at apple dot com
2004-10-26 23:27 ` [Bug c/18166] " mrs at apple dot com
2004-10-26 23:30 ` pinskia at gcc dot gnu dot org
@ 2005-01-29 16:31 ` jsm28 at gcc dot gnu dot org
2005-03-19 13:23 ` jsm28 at gcc dot gnu dot org
2005-03-20 17:45 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-01-29 16:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-01-29 16:31 -------
My patch <http://gcc.gnu.org/ml/gcc-patches/2005-01/msg02180.html>
should cause fields to be given the correct types within the C front
end, and might thereby fix this bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18166
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18166] top const stripped in structs for C
2004-10-26 23:24 [Bug c/18166] New: top const stripped in structs for C mrs at apple dot com
` (2 preceding siblings ...)
2005-01-29 16:31 ` jsm28 at gcc dot gnu dot org
@ 2005-03-19 13:23 ` jsm28 at gcc dot gnu dot org
2005-03-20 17:45 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-03-19 13:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm28 at gcc dot gnu dot org 2005-03-19 13:23 -------
Could someone with a Darwin build to hand check whether this bug is indeed fixed
as I suggest in my previous comment?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm28 at gcc dot gnu dot org
Status|NEW |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18166
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/18166] top const stripped in structs for C
2004-10-26 23:24 [Bug c/18166] New: top const stripped in structs for C mrs at apple dot com
` (3 preceding siblings ...)
2005-03-19 13:23 ` jsm28 at gcc dot gnu dot org
@ 2005-03-20 17:45 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-20 17:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-20 17:45 -------
Confirmed as fixed:
(gdb) ptype xss
type = struct ss {
char *ptr;
}
(gdb) ptype xssc
type = struct ssc {
char * const ptr;
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18166
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-03-20 17:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26 23:24 [Bug c/18166] New: top const stripped in structs for C mrs at apple dot com
2004-10-26 23:27 ` [Bug c/18166] " mrs at apple dot com
2004-10-26 23:30 ` pinskia at gcc dot gnu dot org
2005-01-29 16:31 ` jsm28 at gcc dot gnu dot org
2005-03-19 13:23 ` jsm28 at gcc dot gnu dot org
2005-03-20 17:45 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).