public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18061] New: Problem with template class
@ 2004-10-19 16:46 ycollet at freesurf dot fr
  2004-10-19 16:48 ` [Bug c++/18061] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ycollet at freesurf dot fr @ 2004-10-19 16:46 UTC (permalink / raw)
  To: gcc-bugs

When I compile this sample (g++ main.cpp -o main)
g++ says that A_val is not defined !
It uses to work with g++ version < 3.4

A.hpp ------------------------

template <typename Var>
class A
{
	public:
		double getA() {return A_val;}
	protected:
		double A_val;
};


B.hpp ---------------------------

#include "A.hpp"

template<typename Var>
class B : public A<Var>
{
	public:
		double getB() {return A_val;}
	protected:
		double B_val;
};

main.cpp ----------------

#include "B.hpp"

int main()
{
	B<int> test;

	test.getA();

	return 0;
}

--------

-- 
           Summary: Problem with template class
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ycollet at freesurf dot fr
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: linux i686 gnu


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


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

* [Bug c++/18061] Problem with template class
  2004-10-19 16:46 [Bug c++/18061] New: Problem with template class ycollet at freesurf dot fr
@ 2004-10-19 16:48 ` pinskia at gcc dot gnu dot org
  2004-11-05 19:27 ` bangerth at dealii dot org
  2004-11-05 19:29 ` bangerth at dealii dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-19 16:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-19 16:48 -------
Invalid, did you read the release notes?

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


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


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

* [Bug c++/18061] Problem with template class
  2004-10-19 16:46 [Bug c++/18061] New: Problem with template class ycollet at freesurf dot fr
  2004-10-19 16:48 ` [Bug c++/18061] " pinskia at gcc dot gnu dot org
@ 2004-11-05 19:27 ` bangerth at dealii dot org
  2004-11-05 19:29 ` bangerth at dealii dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-11-05 19:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-11-05 19:27 -------
These are all duplicates of PR 15552 

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


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


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

* [Bug c++/18061] Problem with template class
  2004-10-19 16:46 [Bug c++/18061] New: Problem with template class ycollet at freesurf dot fr
  2004-10-19 16:48 ` [Bug c++/18061] " pinskia at gcc dot gnu dot org
  2004-11-05 19:27 ` bangerth at dealii dot org
@ 2004-11-05 19:29 ` bangerth at dealii dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-11-05 19:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-11-05 19:29 -------
Duplicate of PR 15552. 

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

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


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


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

end of thread, other threads:[~2004-11-05 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-19 16:46 [Bug c++/18061] New: Problem with template class ycollet at freesurf dot fr
2004-10-19 16:48 ` [Bug c++/18061] " pinskia at gcc dot gnu dot org
2004-11-05 19:27 ` bangerth at dealii dot org
2004-11-05 19:29 ` bangerth at dealii 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).