This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
apparent namespace bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: apparent namespace bug
- From: Blake Meike <bmeike at adero dot com>
- Date: Fri, 28 Jul 2000 13:58:25 -0400
Although this is similar to several of the WK bugs, it isn't obviously
identical to any of them. Thought you might want to know about it:
Cheers,
Blake Meike
namespace ZQX3 {
struct Test { int xxx, yyy; };
};
int main(int argc, char *argv[]) {
ZQX3::Test test;
test.xxx = 2; // works!
test.ZQX3::xxx = 2; // doesn't!!
return 1;
}
home>gcc test.cc -lg++
test.cc: In function `int main(int, char **)':
test.cc:9: Internal compiler error.
test.cc:9: Please submit a full bug report.
test.cc:9: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
instructions.
home>