public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/9269: libstdc++ headers: explicit specialization of function must precede its first use
@ 2003-01-14 18:46 Mark Mitchell
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Mitchell @ 2003-01-14 18:46 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/9269; it has been noted by GNATS.

From: Mark Mitchell <mark@codesourcery.com>
To: "bkoz@gcc.gnu.org" <bkoz@gcc.gnu.org>,
   "Vyatcheslav.Sysoltsev@intel.com" <Vyatcheslav.Sysoltsev@intel.com>,
   "bkoz@redhat.com" <bkoz@redhat.com>,
   "gcc-bugs@gcc.gnu.org" <gcc-bugs@gcc.gnu.org>,
   "gcc-prs@gcc.gnu.org" <gcc-prs@gcc.gnu.org>,
   "nobody@gcc.gnu.org" <nobody@gcc.gnu.org>,
   "gcc-gnats@gcc.gnu.org" <gcc-gnats@gcc.gnu.org>
Cc:  
Subject: Re: libstdc++/9269: libstdc++ headers: explicit specialization of
 function must precede its first use
Date: Tue, 14 Jan 2003 10:36:44 -0800

 --On Monday, January 13, 2003 05:41:38 PM +0000 "bkoz@gcc.gnu.org" 
 <bkoz@gcc.gnu.org> wrote:
 
 >    Mark this patch is in 3_2, and 3_3 branch, but cannot be applied to
 > gcc head, as it gives a compilation failure (new parser likely.). Can you
 > take a look at it?
 
 Yes; will do.
 
 --
 Mark Mitchell                   mark@codesourcery.com
 CodeSourcery, LLC               http://www.codesourcery.com
 


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

* Re: libstdc++/9269: libstdc++ headers: explicit specialization of function must precede its first use
@ 2003-01-22 17:14 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2003-01-22 17:14 UTC (permalink / raw)
  To: Vyatcheslav.Sysoltsev, bkoz, bkoz, gcc-bugs, gcc-prs, mark

Synopsis: libstdc++ headers: explicit specialization of function must precede its first use

State-Changed-From-To: feedback->analyzed
State-Changed-By: bkoz
State-Changed-When: Wed Jan 22 17:14:54 2003
State-Changed-Why:
    This is still an issue 2002-01-22.
    %make fstream.o
    /mnt/hd/ahimsa/bld-x86-gcc/gcc/xgcc -shared-libgcc -B/mnt/hd/ahimsa/bld-x86-gcc/gcc/ -nostdinc++  -L/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/src -L/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/mnt/hd/ahimsa/H-x86-gcc/i686-pc-linux-gnu/bin/ -B/mnt/hd/ahimsa/H-x86-gcc/i686-pc-linux-gnu/lib/ -isystem /mnt/hd/ahimsa/H-x86-gcc/i686-pc-linux-gnu/include -DHAVE_CONFIG_H -I. -I/mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/src -I.. -nostdinc++ -I/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include -I/mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/libsupc++  -I/mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/libmath    -fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings -Winline  -fdiagnostics-show-location=once  -ffunction-sections -fdata-sections   -g -O2 -D_GNU_SOURCE -c /mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/src/fstream.cc
    In file included from /mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/src/fstream.cc:35:
    /mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/fstream:452: error: expected
       function-definition
    /mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/fstream:457: error: expected
       function-definition
    make: *** [fstream.o] Error 1
    
    I've added pre-processed sources for this to the PR.

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


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

* Re: libstdc++/9269: libstdc++ headers: explicit specialization of function must precede its first use
@ 2003-01-13 17:41 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2003-01-13 17:41 UTC (permalink / raw)
  To: Vyatcheslav.Sysoltsev, bkoz, bkoz, gcc-bugs, gcc-prs, mark, nobody

Synopsis: libstdc++ headers: explicit specialization of function must precede its first use

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Mon Jan 13 09:41:36 2003
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Mon Jan 13 09:41:36 2003
State-Changed-Why:
    Mark this patch is in 3_2, and 3_3 branch, but cannot be applied to gcc head, as it gives a compilation failure (new parser likely.). Can you take a look at it?
    
    thanks,
    benjamin

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


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

* libstdc++/9269: libstdc++ headers: explicit specialization of function must precede its first use
@ 2003-01-11  1:16 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2003-01-11  1:16 UTC (permalink / raw)
  To: gcc-gnats; +Cc: Vyatcheslav.Sysoltsev


>Number:         9269
>Category:       libstdc++
>Synopsis:       libstdc++ headers: explicit specialization of function must precede its first use
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 10 17:16:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sysoltsev Slawa
>Release:        gcc-3.2.x, gcc-3.3.c, gcc
>Organization:
>Environment:
x86 linux
>Description:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=79694

this fix cannot be applied on mainline, due to this error:

/mnt/hd/ahimsa/bld-x86-gcc/gcc/xgcc -shared-libgcc -B/mnt/hd/ahimsa/bld-x86-gcc/gcc/ -nostdinc++ -L/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/src -L/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/mnt/hd/ahimsa/H-x86-gcc/i686-pc-linux-gnu/bin/ -B/mnt/hd/ahimsa/H-x86-gcc/i686-pc-linux-gnu/lib/ -isystem /mnt/hd/ahimsa/H-x86-gcc/i686-pc-linux-gnu/include -nostdinc++ -I/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include -I/mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/libsupc++ -I/mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c /mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/src/fstream.cc  -fPIC -DPIC -o .libs/fstream.o
In file included from /mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/ext/stdio_filebuf.h:38,
                 from /mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/src/ext-inst.cc:35:/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/fstream:448: error: expected
   function-definition
/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/fstream:453: error: expected
   function-definition
In file included from /mnt/hd/bliss/src.gcc/gcc/libstdc++-v3/src/fstream.cc:35:
/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/fstream:448: error: expected
   function-definition
/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/include/fstream:453: error: expected
   function-definition
make[3]: *** [fstream.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [ext-inst.lo] Error 1
make[3]: Leaving directory `/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/mnt/hd/ahimsa/bld-x86-gcc/i686-pc-linux-gnu/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
<bkoz@fillmore> /mnt/hd/ahimsa/bld-x86-gcc                                      %
>How-To-Repeat:

>Fix:
2003-01-10  Benjamin Kosnik  <bkoz@redhat.com>
	    Sysoltsev Slawa  <Vyatcheslav.Sysoltsev@intel.com>

	PR libstdc++/
	* include/std/std_fstream.h (basic_filebuf::uflow): Declare.
	(basic_filebuf::underflow): Declare.
	Move definitions.


Index: include/std/std_fstream.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/std/std_fstream.h,v
retrieving revision 1.15
diff -c -p -r1.15 std_fstream.h
*** include/std/std_fstream.h	27 Dec 2002 23:03:03 -0000	1.15
--- include/std/std_fstream.h	11 Jan 2003 00:51:37 -0000
*************** namespace std
*** 234,244 ****
  
        // [documentation is inherited]
        virtual int_type
!       underflow() { return _M_underflow_common(false); }
  
        // [documentation is inherited]
        virtual int_type
!       uflow() { return _M_underflow_common(true); }
  
        // [documentation is inherited]
        virtual int_type
--- 234,244 ----
  
        // [documentation is inherited]
        virtual int_type
!       underflow();
  
        // [documentation is inherited]
        virtual int_type
!       uflow();
  
        // [documentation is inherited]
        virtual int_type
*************** namespace std
*** 431,437 ****
        }
      };
  
!   // Explicit specializations, defined in src/fstream.cc.
    template<> 
      basic_filebuf<char>::int_type 
      basic_filebuf<char>::_M_underflow_common(bool __bump);
--- 431,437 ----
        }
      };
  
!   // Explicit specialization declarations, defined in src/fstream.cc.
    template<> 
      basic_filebuf<char>::int_type 
      basic_filebuf<char>::_M_underflow_common(bool __bump);
*************** namespace std
*** 441,446 ****
--- 441,458 ----
      basic_filebuf<wchar_t>::int_type 
      basic_filebuf<wchar_t>::_M_underflow_common(bool __bump);
   #endif
+ 
+   // Generic definitions.
+   template <typename _CharT, typename _Traits>
+     basic_filebuf<_CharT, _Traits>::int_type
+     basic_filebuf<_CharT, _Traits>::underflow() 
+     { return _M_underflow_common(false); }
+ 
+   template <typename _CharT, typename _Traits>
+     basic_filebuf<_CharT, _Traits>::int_type
+     basic_filebuf<_CharT, _Traits>::uflow() 
+     { return _M_underflow_common(true); }
+ 
  
    // [27.8.1.5] Template class basic_ifstream
    /**
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-01-22 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-14 18:46 libstdc++/9269: libstdc++ headers: explicit specialization of function must precede its first use Mark Mitchell
  -- strict thread matches above, loose matches on Subject: below --
2003-01-22 17:14 bkoz
2003-01-13 17:41 bkoz
2003-01-11  1:16 bkoz

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