This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

apparent namespace bug


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]