Article View: gnu.g++.bug
Article #1104bug in template instantiation
From: Brendan Kehoe
Date: Sat, 07 Nov 1992 00:27
Date: Sat, 07 Nov 1992 00:27
52 lines
2645 bytes
2645 bytes
[By the way, I made it not spew out all of that nasty garbage. I still need to fix it to not barf like it does.] > Sorry, the previous version of this bug report was slightly incorrect. > > Version: > Reading specs from /usr/local/lib/gcc-lib/sparc/2.3.1/specs > gcc version 2.3.1 > on a Sun sparc workstation > > Bug in template instantiation: I have a > > template < class T, enum Types Tcode, const char* Name > > > and g++ belches on Name, on the line > typedef qdesBase<long,Int,"integer scalar"> intScalar; > saying > > cd /u2/mcgrant/src/qdes/ver2/ > g++ -DNOINLINE -c bug1.C > qdesVar.C:42: invalid pointer constant for template parameter > <pointer_type 195b60 > type <integer_type 195b08 char readonly permanent QI > size <integer_cst 1932a8 constant permanent 8> > align 8 symtab 0 precision 8 > min <integer_cst 193278 constant permanent -128> > max <integer_cst 193290 constant permanent 127> > pointer_to_this <pointer_type 195b60>> > unsigned permanent SI > size <integer_cst 1931b0 type <integer_type 193128 int> constant permanent 32> > align 32 symtab 0 > pointer_to_this <pointer_type 1ab6b8>> > <nop_expr 1c37a8 > type <pointer_type 195ab0 > type <integer_type 193220 char permanent QI > size <integer_cst 1932a8 constant permanent 8> > align 8 symtab 0 precision 8 > min <integer_cst 193278 constant permanent -128> > max <integer_cst 193290 constant permanent 127> > pointer_to_this <pointer_type 195ab0>> > unsigned permanent SI > size <integer_cst 1931b0 constant permanent 32> > align 32 symtab 0> > constant permanent > arg 0 <addr_expr 1c3790 > type <pointer_type 1c3738 type <array_type 1c3668> > unsigned permanent SI size <integer_cst 1931b0 32> > align 32 symtab 0> > constant permanent > arg 0 <string_cst 1c35a8 type <array_type 1c3668> > constant permanent static "integer scalar">>> > qdesVar.H:24: please fix above error, and try recompiling.
Technical Details
Message-ID:
<9211070027.AA26137@cygnus.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!brendanReferences:
<9211050340.AA01602@ISL.Stanford.EDU>Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cygnus.com!brendan From: brendan@cygnus.com (Brendan Kehoe) Subject: bug in template instantiation Message-ID: <9211070027.AA26137@cygnus.com> Sender: gnulists@ai.mit.edu Reply-To: brendan@cygnus.com Organization: GNUs Not Usenet References: <9211050340.AA01602@ISL.Stanford.EDU> Distribution: gnu Date: Sat, 7 Nov 1992 00:27:37 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 53