[Bug c/18166] top const stripped in structs for C
mrs at apple dot com
gcc-bugzilla@gcc.gnu.org
Tue Oct 26 23:27:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list