Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-389

[HP aCC 3.73] fails to deduce volatile T

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • External
    • None
    • HP aCC 3.73

    Description

      -------- Original Message --------
      Subject: aCC 3.73 fails to deduce volatile T
      Date: Mon, 09 Apr 2007 10:55:33 -0600
      From: Martin Sebor <sebor@roguewave.com>
      Organization: Rogue Wave Software
      To: acxx@cup.hp.com

      The program below fails to compile with 3.73 (it compiles fine
      with the EDG-based compilers).

      Martin

      $ cat t.cpp && aCC -AA -V t.cpp
      template <class T> void foo (const T*) { }
      int main ()

      { foo ((const volatile void*)0); }
      aCC: HP ANSI C++ B3910B A.03.73
      Error 226: "t.cpp", line 2 # No appropriate function found for call of
      'foo'. Last viable candidate was "void foo<void>(const void *)"
      ["t.cpp", line 1]. Argument of type 'const volatile void *' could not be
      converted to 'const void *'.
      int main () { foo ((const volatile void*)0); }

      ^^^

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sebor Martin Sebor
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: