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

[HP aCC 3.73] ICE on +DD64 and partial specialization

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: External
    • Labels:
      None
    • Environment:

      HP aCC 3.73 +DD64

    • Severity:
      Compiler Error

      Description

      The following is a test case for the HP aCC ICE discussed in this comment on STDCXX-976.

      $ cat ~/tmp/t.C && aCC -V -c +DD64 ~/tmp/t.C
      template <class T> struct S;
      template <class T> struct S<T*> { typedef T X; };
      
      template <class T, class U> void foo (T*, U&) { }
      
      template <class T, class U>
      void foo (volatile T* p, U& val) {
          foo (const_cast<T*>(p), val);
      }
      
      
      template <class T, class U>
      void bar (T a, U c) {
          typedef const typename S<T>::X& R;
          foo (&*c, R (*a));
      }
      
      int main ()
      {
          int i = 0;
          volatile int vi = 0;
          const volatile int cvi = 0;
      
          bar (&cvi, &i);
          bar (&cvi, &vi);
      }
      aCC: HP ANSI C++ B3910B A.03.73
      ( 0)  0x002a6480   toolError__12ErrorHandlerF11StringTokenRC8Positione + 0x58  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 1)  0x00354640   fe_error + 0x24c  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 2)  0x0088b614   add_ELF_comdat_entry + 0x13c  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 3)  0x0088b690   collect_ELF_comdats + 0x4c  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 4)  0x0088e258   close_ELF_link + 0xa0  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 5)  0x000b7bc4   end_out + 0x3c  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 6)  0x001047b0   pass3_sllic + 0xf0  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 7)  0x001046b4   ccall_pass3 + 0x20  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 8)  0x00113bd0   process_sllic_graph + 0x1f0  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      ( 9)  0x00281c30   finish_program + 0x94  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      (10)  0x00282ff4   cg_stp + 0x178  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      (11)  0x003773e4   be_stp + 0x1c  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      (12)  0x000b73ec   ucodeCodeGenTerm__Fv + 0x78  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      (13)  0x000cb7ac   main + 0x46c  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      (14)  0xc0143b00   _start + 0xc4  [/usr/lib/libc.2]
      (15)  0x000b8120   $START$ + 0x178  [/tmp_mnt/amd/packages/mdx/hpux/compilers/hp/aCC373_11.11/opt/aCC/lbin/ctcom.pa20]
      Error (internal problem) 7835: Exact position unknown; near ["/nfs/homes/sebor/tmp/t.C", line 1]. # Internal error encountered while generating ELF file. (7835)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: