[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    apparent namespace bug
From:       Blake Meike <bmeike () adero ! com>
Date:       2000-07-28 17:58:25
[Download RAW message or body]

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>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic