public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25846]  New: declaration scope of template members
@ 2006-01-18 15:57 vna at rts dot co dot at
  2006-01-18 16:06 ` [Bug c++/25846] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: vna at rts dot co dot at @ 2006-01-18 15:57 UTC (permalink / raw)
  To: gcc-bugs

I have a problem with template construction compiled by g++ 4.0.2 (SuSE Linux).
The compiler populate following error message:
"test.cpp:17: error: a m_pData was not declared in this scope"
Previous release g++ 3.3.3 works fine.

template<class T> class c1T
{
public:
  c1T () { }
  ~c1T (){ }
  operator T*() const { return m_pData; }
  T *m_pData;
};

template<class T> class c1newT : public c1T<T>
{
public:
  c1newT () : c1T<T> () { }
  T* operator->() const   { return m_pData; }
};

main ()
{
  c1T<int> hugo;
}

Thanks


-- 
           Summary: declaration scope of template members
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vna at rts dot co dot at


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25846


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

* [Bug c++/25846] declaration scope of template members
  2006-01-18 15:57 [Bug c++/25846] New: declaration scope of template members vna at rts dot co dot at
@ 2006-01-18 16:06 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-18 16:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-01-18 16:06 -------
Please read http://gcc.gnu.org/gcc-3.4/changes.html.

This is a dup of bug 12970.

*** This bug has been marked as a duplicate of 12970 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25846


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

end of thread, other threads:[~2006-01-18 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-18 15:57 [Bug c++/25846] New: declaration scope of template members vna at rts dot co dot at
2006-01-18 16:06 ` [Bug c++/25846] " pinskia 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).