[Bug libstdc++/8670] Alignment problem in std::basic_string
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Wed Oct 1 22:05:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8670
------- Additional Comments From gdr at integrable-solutions dot net 2003-10-01 22:05 -------
Subject: Re: Alignment problem in std::basic_string
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Depend on the bug which is about "__alignof__(double) not compile time constant inside template
| class".
The issue is not really that of __alignof__(double) not being an
integral constant -- surely it is. Try to use it in contexts where
the Standard requires an integral constant expression.
The real issue is having to do with __aligned__.
Try
struct A {
enum { constant = 4 };
__attribute__((__aligned__(constant))) char data;
};
-- Gaby
More information about the Gcc-bugs
mailing list