From 9db600bf9afe5217fd17e394106d2a00d1a7a8e8 Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 4 Apr 2002 01:12:21 +0000 Subject: [PATCH] PR c++/525 * init.c (build_member_call): Convert to intermediate base even with -pedantic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_0-branch@51832 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/init.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fe79ba7d6dd..d1ac8102f3e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,9 @@ 2002-04-03 Jason Merrill + PR c++/525 + * init.c (build_member_call): Convert to intermediate base even + with -pedantic. + PR c++/5104 * typeck.c (comptypes) [FUNCTION_TYPE]: Don't compare exception specifiers. diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 0e150fdbfda..bc094af5291 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -1581,10 +1581,8 @@ build_member_call (type, name, parmlist) decl = maybe_dummy_object (type, &basetype_path); /* Convert 'this' to the specified type to disambiguate conversion - to the function's context. Apparently Standard C++ says that we - shouldn't do this. */ + to the function's context. */ if (decl == current_class_ref - && ! pedantic && ACCESSIBLY_UNIQUELY_DERIVED_P (type, current_class_type)) { tree olddecl = current_class_ptr; -- 2.11.4.GIT