This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bootstrap/7192: build failed in gcc/cp/pt.c
- From: adi at thur dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: Wed, 3 Jul 2002 12:15:02 +0200
- Subject: bootstrap/7192: build failed in gcc/cp/pt.c
>Number: 7192
>Category: bootstrap
>Synopsis: build failed in gcc/cp/pt.c
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 03 03:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Adrian Knoth
>Release: 3.2 20020604 (experimental)
>Organization:
Thueringen Netz e.V. (www.erfurt.thur.de)
>Environment:
System: Linux drcomp 2.4.18 #13 Sun Mar 3 13:22:15 CET 2002 i586 unknown
Architecture: i586
host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: ../gcc/configure --enable-shared --enable-threads --enable-languages=c,c++,ada
>Description:
The cvs-co from 2002/07/03 breaks with:
cp/pt.o: In function `instantiate_class_template':
/bigspace/build/compile/gcc/../../gcc/gcc/cp/pt.c:5254: undefined reference to `incomplete_type_error'
This seems correct because grep can only find cxx_incomplete_type_error
>How-To-Repeat:
Compile gcc-3.2-20020703 with C++
>Fix:
I'm not quite sure whether this is the right way, but it worked for
me here:
diff -u -r old/gcc/gcc/cp/pt.c new/gcc/gcc/cp/pt.c
--- old/gcc/gcc/cp/pt.c Tue Jul 2 17:55:54 2002
+++ new/gcc/gcc/cp/pt.c Wed Jul 3 12:13:52 2002
@@ -5251,7 +5251,7 @@
tree rtype = TREE_TYPE (r);
if (!can_complete_type_without_circularity (rtype))
{
- incomplete_type_error (r, rtype);
+ cxx_incomplete_type_error (r, rtype);
r = error_mark_node;
}
}
>Release-Note:
>Audit-Trail:
>Unformatted: