public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/8836: char_traits<signed char> undefined at link time ( char_traits<char> is OK )
@ 2002-12-07  9:34 gdr
  0 siblings, 0 replies; 2+ messages in thread
From: gdr @ 2002-12-07  9:34 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gdr, nobody, richarda

Synopsis: char_traits<signed char> undefined at link time ( char_traits<char> is OK )

Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Sat Dec  7 09:34:16 2002
Responsible-Changed-Why:
    .
State-Changed-From-To: open->closed
State-Changed-By: gdr
State-Changed-When: Sat Dec  7 09:34:16 2002
State-Changed-Why:
    Not a bug.
    See our FAQ.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8836


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

* libstdc++/8836: char_traits<signed char> undefined at link time ( char_traits<char> is OK )
@ 2002-12-05 16:26 richarda
  0 siblings, 0 replies; 2+ messages in thread
From: richarda @ 2002-12-05 16:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8836
>Category:       libstdc++
>Synopsis:       char_traits<signed char> undefined at link time ( char_traits<char> is OK )
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 05 16:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     richarda@vecien.com
>Release:        3.2.1
>Organization:
>Environment:
i386-pc-linux-gnu (RedHat 7.3)

>Description:

gint8 from glib is

typedef signed char gint8;

using basic_streambuf<gint8> fails at link with 

undefined reference to `std::char_traits<signed char>::eof()'
undefined reference to `std::char_traits<signed char>::eq_int_type(unsigned long const&, unsigned long const&)'
undefined reference to `std::char_traits<signed char>::eof()'
undefined reference to `std::char_traits<signed char>::not_eof(unsigned long const&)'

etc...

Works fine if typedef is changed to use 'char' instead of 'signed char'.

>How-To-Repeat:

#include <istream>

typedef signed char c_type;

class buf : public std::basic_streambuf<c_type>
{
public:
    buf()
        {
        }

    virtual ~buf()
        {
        }

};

int main (int argc, char * argv[] )
{
    buf * b = new buf;

    return 0;
}


>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-12-07 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-07  9:34 libstdc++/8836: char_traits<signed char> undefined at link time ( char_traits<char> is OK ) gdr
  -- strict thread matches above, loose matches on Subject: below --
2002-12-05 16:26 richarda

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).