Bug 35115 - [4.3 Regression] ../../gcc-4.3-work/gcc/objcp/objcp-decl.c:98: error: implicit declaration of function 'comptypes'
Summary: [4.3 Regression] ../../gcc-4.3-work/gcc/objcp/objcp-decl.c:98: error: implici...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.3.0
: P1 normal
Target Milestone: 4.3.0
Assignee: dgregor
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: build
Depends on:
Blocks:
 
Reported: 2008-02-06 22:56 UTC by Dominique d'Humieres
Modified: 2008-02-07 19:06 UTC (History)
3 users (show)

See Also:
Host: i686-apple-darwin9
Target: i686-apple-darwin9
Build: i686-apple-darwin9
Known to work:
Known to fail:
Last reconfirmed: 2008-02-07 18:59:57


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique d'Humieres 2008-02-06 22:56:50 UTC
Rebuilding gcc rev. 132160 from scratch failed with:

...
/opt/gcc/i686-darwin/./prev-gcc/xgcc -B/opt/gcc/i686-darwin/./prev-gcc/ -B/opt/gcc/gcc4.3w/i686-apple-darwin9/bin/ -c   -g -O2 -fomit-frame-pointer -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros                                     -Wno-overlength-strings -Werror -DOBJCPLUS -I../../gcc-4.3-work/gcc/objc -I../../gcc-4.3-work/gcc/cp -fno-common   -DHAVE_CONFIG_H -I. -Iobjcp -I../../gcc-4.3-work/gcc -I../../gcc-4.3-work/gcc/objcp -I../../gcc-4.3-work/gcc/../include -I./../intl -I../../gcc-4.3-work/gcc/../libcpp/include -I/sw/include  -I../../gcc-4.3-work/gcc/../libdecnumber -I../../gcc-4.3-work/gcc/../libdecnumber/dpd -I../libdecnumber    ../../gcc-4.3-work/gcc/objcp/objcp-decl.c -o objcp/objcp-decl.o
cc1: warnings being treated as errors
../../gcc-4.3-work/gcc/objcp/objcp-decl.c: In function 'objcp_comptypes':
../../gcc-4.3-work/gcc/objcp/objcp-decl.c:98: error: implicit declaration of function 'comptypes'

Note that it is again a "cc1: warnings being treated as errors".
Comment 1 Volker Reichelt 2008-02-06 23:04:44 UTC
See also http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00195.html
Comment 2 dgregor 2008-02-07 18:59:57 UTC
This is fallout from my comptypes patch. 
Comment 3 dgregor 2008-02-07 19:04:25 UTC
Subject: Bug 35115

Author: dgregor
Date: Thu Feb  7 19:03:40 2008
New Revision: 132173

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132173
Log:
2008-02-06  Douglas Gregor  <doug.gregor@gmail.com>

	* g++.dg/ext/vector13.C: Fix for compilation under -pedantic.
2008-02-07  Andreas Tobler  <andreast-list@fgznet.ch>
            Douglas Gregor  <doug.gregor@gmail.com>
 
	PR bootstrap/35115
	* objcp-decl.c (objcp_comptypes): Call cp_comptypes, not comptypes.


Modified:
    trunk/gcc/objcp/ChangeLog
    trunk/gcc/objcp/objcp-decl.c

Comment 4 dgregor 2008-02-07 19:06:08 UTC
Fixed. 
Comment 5 Paolo Bonzini 2008-03-07 11:48:11 UTC
Subject: Bug 35115

Author: bonzini
Date: Fri Mar  7 11:47:20 2008
New Revision: 133007

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133007
Log:
cp:
2008-03-07  Paolo Bonzini  <bonzini@gnu.org>

	Revert:

	2008-02-06  Douglas Gregor  <doug.gregor@gmail.com>

	PR c++/35049
	PR c++/35096
	* typeck.c (structural_comptypes): Call cp_comptypes.
	(comptypes): New; called from the C/C++ common bits to perform
	strict checks.
	(cp_comptypes): Renamed from comptypes, which is already used,
	with a different signature, by the C++ front end.
	(build_reinterpret_cast_1): Call cp_comptypes.
	(ptr_reasonably_similar): Ditto.
	* decl.c (decls_match): Ditto.
	* cvt.c (convert_to_reference): Ditto.
	* cp-tree.h (same_type_p): Ditto.
	(same_or_base_type_p): Ditto.
	(comptypes): Rename to cp_comptypes.
	* pt.c (canonical_type_parameter): Call cp_comptypes.

objcp:
2008-03-07  Paolo Bonzini  <bonzini@gnu.org>

	Revert:

	2008-02-07  Andreas Tobler  <andreast-list@fgznet.ch>
	            Douglas Gregor  <doug.gregor@gmail.com>
 
	PR bootstrap/35115
	* objcp-decl.c (objcp_comptypes): Call cp_comptypes, not comptypes.


Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/cvt.c
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/objcp/ChangeLog
    trunk/gcc/objcp/objcp-decl.c