public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/17772] New: Derivating a templated class, the members of the base class are unknown @ 2004-10-01 10:50 Serge dot Iovleff at univ-lille1 dot fr 2004-10-01 12:26 ` [Bug c++/17772] " pinskia at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Serge dot Iovleff at univ-lille1 dot fr @ 2004-10-01 10:50 UTC (permalink / raw) To: gcc-bugs [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1188 bytes --] Here is an exemple template<class TYPE> class A { public: TYPE q; A() { q =0;} ~A() { ;} }; template<class TYPE> class B : public A<TYPE> { public: B(TYPE n) : A<TYPE>() { q =n;} ~B() { ;} }; int main(int argc, char *argv[]) { B<int> b(3); } $ g++-3.4 test.cpp -g -O2 -o test essai.cpp: In constructor `B<TYPE>::B(TYPE)': essai.cpp:14: erreur: « q » non déclaré (première utilisation dans cette fonction) essai.cpp:14: erreur: (Chaque identificateur non déclaré est rapporté seulement une seule fois pour la fonction dans laquelle il apparaît.) My locale is in french, the compilator say that q is unknown. $g++-3.3 test.cpp -g -O2 -o test work fine. Serge -- Summary: Derivating a templated class, the members of the base class are unknown Product: gcc Version: 3.4.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Serge dot Iovleff at univ-lille1 dot fr CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17772 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/17772] Derivating a templated class, the members of the base class are unknown 2004-10-01 10:50 [Bug c++/17772] New: Derivating a templated class, the members of the base class are unknown Serge dot Iovleff at univ-lille1 dot fr @ 2004-10-01 12:26 ` pinskia at gcc dot gnu dot org 2004-11-05 19:27 ` bangerth at dealii dot org 2004-11-05 19:32 ` bangerth at dealii dot org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-01 12:26 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-01 12:26 ------- Does anyone read the release notes at all? -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17772 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/17772] Derivating a templated class, the members of the base class are unknown 2004-10-01 10:50 [Bug c++/17772] New: Derivating a templated class, the members of the base class are unknown Serge dot Iovleff at univ-lille1 dot fr 2004-10-01 12:26 ` [Bug c++/17772] " pinskia at gcc dot gnu dot org @ 2004-11-05 19:27 ` bangerth at dealii dot org 2004-11-05 19:32 ` 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=17772 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/17772] Derivating a templated class, the members of the base class are unknown 2004-10-01 10:50 [Bug c++/17772] New: Derivating a templated class, the members of the base class are unknown Serge dot Iovleff at univ-lille1 dot fr 2004-10-01 12:26 ` [Bug c++/17772] " pinskia at gcc dot gnu dot org 2004-11-05 19:27 ` bangerth at dealii dot org @ 2004-11-05 19:32 ` bangerth at dealii dot org 2 siblings, 0 replies; 4+ messages in thread From: bangerth at dealii dot org @ 2004-11-05 19:32 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From bangerth at dealii dot org 2004-11-05 19:32 ------- 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=17772 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-11-05 19:32 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-10-01 10:50 [Bug c++/17772] New: Derivating a templated class, the members of the base class are unknown Serge dot Iovleff at univ-lille1 dot fr 2004-10-01 12:26 ` [Bug c++/17772] " pinskia at gcc dot gnu dot org 2004-11-05 19:27 ` bangerth at dealii dot org 2004-11-05 19:32 ` 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).