From 0087db82f43501a5c5142db92ea52653998b5e02 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 24 Jun 2002 12:04:08 +0000 Subject: [PATCH] Seems as if previous test did not work. git-svn-id: https://svn.dealii.org/trunk@6182 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 44bde186e7..2201b1c44f 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -2007,11 +2007,12 @@ dnl try to detect this, and set a flag correspondingly. in short, dnl the DR says that this is allowed, since member classes are dnl implicitly also friends: dnl ----------------------------- -dnl class X { -dnl static int i; -dnl +dnl struct X { +dnl private: +dnl static int f(); +dnl dnl struct Y { -dnl int f() { return i; }; +dnl int g() { return f(); }; dnl }; dnl }; dnl ----------------------------- @@ -2028,11 +2029,12 @@ AC_DEFUN(DEAL_II_CHECK_NESTED_CLASS_FRIEND_BUG, dnl CXXFLAGS="$CXXFLAGSG" AC_TRY_COMPILE( [ - class X { - static int i; - + struct X { + private: + static int f(); + struct Y { - int f() { return i; }; + int g() { return f(); }; }; }; ], -- 2.39.5