Hi Farid,

I'm afraid there's a minor portability problem with this patch.

[EMAIL PROTECTED] wrote:
Author: faridz
Date: Thu Mar  1 09:01:07 2007
New Revision: 513406

URL: http://svn.apache.org/viewvc?view=rev&rev=513406
Log:
2007-03-01  Farid Zaripov <[EMAIL PROTECTED]>

        * 18.limits.traps.cpp (test_trap): New function to avoid MSVC error 
C2712:
        Cannot use __try in functions that require object unwinding;
        (test_traps) Used test_trap() function.

Modified:
    incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp

Modified: incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp?view=diff&rev=513406&r1=513405&r2=513406
==============================================================================
--- incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp Thu Mar  1 
09:01:07 2007
@@ -83,6 +83,20 @@
template <class numT>
+static inline void
   ^^^^^^

This is causing errors with strict compilers such as HP aCC
because the function is not found during argument dependent
lookup. From [temp.dep.candidate], p1:

    For a function call that depends on a template parameter, if
    the function name is an unqualified-id but not a template-id,
    or if the function is called using operator notation, the
    candidate functions are found using the usual lookup rules
    (3.4.1, 3.4.2) except that:

    -- For the part of the lookup using unqualified name lookup
       (3.4.1), only function declarations with external linkage
       from the template definition context are found.

Martin

Reply via email to