This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/6190] T::C.X is accepted, although it should read T::C::X
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2003 14:54:52 -0000
- Subject: [Bug c++/6190] T::C.X is accepted, although it should read T::C::X
- References: <20020405094601.6190.reichelt@igpm.rwth-aachen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6190
------- Additional Comments From bangerth@dealii.org 2003-06-02 14:54 -------
Assuming Andrew's comment is a question: Of course this is illegal.
T::C is not an object, it is a type. You can't access members of types
using the dot operator, only the :: operator. C++!=java
W.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.