]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove an unused bug and an unused feature test
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 31 Oct 2012 15:49:57 +0000 (15:49 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 31 Oct 2012 15:49:57 +0000 (15:49 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27265 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/checks/check_for_compiler_bugs.cmake
deal.II/cmake/checks/check_for_compiler_features.cmake
deal.II/include/deal.II/base/config.h.in

index 9341426cba5c8768a23d1b921728f6eab2cbbaed..9d7bd356b08a7dd6ed33b7c8008beaf3dea7ffb9 100644 (file)
@@ -203,46 +203,6 @@ CHECK_CXX_COMPILER_BUG(
   )
 
 
-#
-# Some versions of gcc get this example wrong:
-#
-# struct X
-# {
-#     template <typename T> void operator << (T);
-# };
-# int main()
-# {
-#   X x;
-#   x.operator << <double> (1);
-# }
-#
-# They want to see a "template" for disambiguation in
-#    x.template operator << <double> (1);
-# which shouldn't be necessary since the left hand side of the
-# dot operator is not template dependent. Surprisingly, this is
-# only the case for operators, not if operator<< were a regular
-# function. Annoyingly, other compilers barf on seeing the
-# disambiguating "template" keyword.
-#
-# - Wolfgang Bangerth, Matthias Maier, rewritten 2012
-#
-CHECK_CXX_COMPILER_BUG(
-  "
-  struct X
-  {
-      template <typename T> void operator << (T) {}
-  };
-  int main()
-  {
-    X x;
-    x.operator << <double> (1);
-    return 0;
-  }
-  "
-  DEAL_II_TEMPL_OP_DISAMBIGUATION_BUG
-  )
-
-
 #
 # Some older versions of gcc compile this, despite the 'explicit'
 # keyword:
index aaec422483a8ff9d5265c25be439a7fb9f045b25..32ef352c1d20c961b8fbe630c4f020bf6e23b089 100644 (file)
@@ -280,25 +280,6 @@ CHECK_CXX_SOURCE_COMPILES(
 
 
 
-#
-# Check if the declared prototype of abort() has a throw()
-# specification. We overload abort() in our testsuite, so have
-# to make sure that we match the exception specification
-# correctly.
-#
-# (Yes. It is not a bug. But the logic is the same.)
-#
-# - Matthias Maier, rewritten 2012
-#
-CHECK_CXX_COMPILER_BUG(
-  "
-  #include <cstdlib>
-  extern \"C\" void abort () { for(;;) ; }
-  int main(){ return 0; }
-  "
-  DEAL_II_ABORT_NOTHROW_EXCEPTION)
-
-
 #
 # Gcc and some other compilers have __PRETTY_FUNCTION__, showing
 # an unmangled version of the function we are presently in,
index d595920ef1179963dd48c6d6e8409a00fef4c28c..571646cc3af4ac01ec040fd864b6b0dd35a2bb19 100644 (file)
  */
 #cmakedefine DEAL_II_COMPILER_USE_VECTOR_ARITHMETICS
 
-/* Defined if the prototype of abort() has a no-throw exception specification.
- */
-#cmakedefine DEAL_II_ABORT_NOTHROW_EXCEPTION
-
 /* If already available, do not define at all. Otherwise, define to
  * __func__ if that is available. In all other cases, indicate that no
  * information about the present function is available for this compiler.
  */
 #cmakedefine DEAL_II_MEMBER_ARRAY_SPECIALIZATION_BUG
 
-/* Defined if the compiler requires the use of the template keyword for
- * disambiguation keyword in certain contexts in which it is not supposed to
- * do so. For the exact failure mode, look at aclocal.m4 in the top-level
- * directory.
- */
-#cmakedefine DEAL_II_TEMPL_OP_DISAMBIGUATION_BUG
-
 /* Defined if the compiler does not honor the explicit keyword on template
  * constructors.
  */
 #include <deal.II/base/types.h>
 
 #endif
+

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.