home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.bug
- Path: sparky!uunet!usc!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icsi.berkeley.edu!krste
- From: krste@icsi.berkeley.edu (Krste Asanovic)
- Subject: same bug
- Message-ID: <9212281836.AA05898@icsib43.ICSI.Berkeley.EDU>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Mon, 28 Dec 1992 18:36:25 GMT
- Approved: bug-g++@prep.ai.mit.edu
- Lines: 69
-
- This still didn't get fixed in 2.3.3. (works in 2.2.2).
-
- On a Sparcstation-2 running SunOS 4.1.1.
-
- Krste Asanovic, Computer Science Division,
- email: krste@cs.berkeley.edu c/o 571 Evans Hall
- phone: +1 (510) 642-4274 ext 143 University of California at Berkeley
- fax: +1 (510) 643-7684 CA 94720, USA
-
- session transcript:
- --------------------------------------------------------------------
- icsib43:20Nov92>cat main.cc
- template<class T>
- class Vec
- {
- public:
- Vec(int nElements);
- ~Vec();
-
- int size();
-
- protected:
- int n;
- T *p;
- };
-
- template<class T>
- inline
- Vec<T>::Vec(int nElements)
- : n(nElements)
- {
- p = new T[nElements];
- }
-
- template<class T>
- inline
- Vec<T>::~Vec()
- {
- delete[] p;
- }
-
- template<class T>
- inline int
- Vec<T>::size()
- {
- return n;
- }
-
- main()
- {
- Vec<int> a(3);
-
- return 0;
- }
- icsib43:20Nov92>gcc -v -c main.cc
- Reading specs from /usr/local/lib/gcc/sun4/2.3.3/specs
- gcc version 2.3.3
- /usr/local/lib/gcc/sun4/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix main.cc /tmp/cca05883.i
- GNU CPP version 2.3.3 (sparc)
- /usr/local/lib/gcc/sun4/2.3.3/cc1plus /tmp/cca05883.i -quiet -dumpbase main.cc -version -o /tmp/cca05883.s
- GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
- main.cc: In function `int main ()':
- main.cc:13: inconsistent return types for method `Vec' in class `Vec<int>'
- main.cc: In method `Vec<int>::~Vec ()':
- main.cc:28: Internal compiler error.
- main.cc:28: Please report this to `bug-g++@prep.ai.mit.edu'.
- icsib43:20Nov92>
-
-
-