public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/6190] T::C.X is accepted, although it should read T::C::X
       [not found] <20020405094601.6190.reichelt@igpm.rwth-aachen.de>
@ 2003-06-01 21:42 ` pinskia@physics.uc.edu
  2003-06-02 14:54 ` bangerth@dealii.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-01 21:42 UTC (permalink / raw)
  To: gcc-bugs

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 pinskia@physics.uc.edu  2003-06-01 21:42 -------
This really invalid, as T::C instances an object, then you reference X from it?



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/6190] T::C.X is accepted, although it should read T::C::X
       [not found] <20020405094601.6190.reichelt@igpm.rwth-aachen.de>
  2003-06-01 21:42 ` [Bug c++/6190] T::C.X is accepted, although it should read T::C::X pinskia@physics.uc.edu
@ 2003-06-02 14:54 ` bangerth@dealii.org
  2003-06-02 15:27 ` reichelt@gcc.gnu.org
  2003-09-05 14:12 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 4+ messages in thread
From: bangerth@dealii.org @ 2003-06-02 14:54 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/6190] T::C.X is accepted, although it should read T::C::X
       [not found] <20020405094601.6190.reichelt@igpm.rwth-aachen.de>
  2003-06-01 21:42 ` [Bug c++/6190] T::C.X is accepted, although it should read T::C::X pinskia@physics.uc.edu
  2003-06-02 14:54 ` bangerth@dealii.org
@ 2003-06-02 15:27 ` reichelt@gcc.gnu.org
  2003-09-05 14:12 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 4+ messages in thread
From: reichelt@gcc.gnu.org @ 2003-06-02 15:27 UTC (permalink / raw)
  To: gcc-bugs

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 reichelt@gcc.gnu.org  2003-06-02 15:27 -------
Just for the record: If you insist on using an object, you have to write:
return typename T::C().X;




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/6190] T::C.X is accepted, although it should read T::C::X
       [not found] <20020405094601.6190.reichelt@igpm.rwth-aachen.de>
                   ` (2 preceding siblings ...)
  2003-06-02 15:27 ` reichelt@gcc.gnu.org
@ 2003-09-05 14:12 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 4+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-09-05 14:12 UTC (permalink / raw)
  To: gcc-bugs

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


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-09-05 14:12 -------
Fixed on mainline by Nathan's patch for PR 11922.

We now issue the error message

PR6190A.cc: In function `int foo() [with T = B]':
PR6190A.cc:4:   instantiated from here
PR6190A.cc:3: error: `T::C' names a type, but a non-type is expected


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-05 14:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020405094601.6190.reichelt@igpm.rwth-aachen.de>
2003-06-01 21:42 ` [Bug c++/6190] T::C.X is accepted, although it should read T::C::X pinskia@physics.uc.edu
2003-06-02 14:54 ` bangerth@dealii.org
2003-06-02 15:27 ` reichelt@gcc.gnu.org
2003-09-05 14:12 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).