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

[IBM XLC++ 9.0] ICE on placement new and explicit dtor invocation

    XMLWordPrintableJSON

    Details

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

      IBM XL C/C++ 9.0 on AIX

      Description

      $ cat t.cpp && xlC -qversion && xlC t.cpp
      #include <new>

      template <int> struct S { S () { } template <int N> S (S<N>) { } };

      int main ()
      {
      typedef S<1> B;

      unsigned char buf [sizeof (B)] = "";

      B* b = new (buf) B (S<2>());

      for (int i = 0; i < sizeof buf; ++i);

      b->~B ();
      }
      IBM XL C/C++ Enterprise Edition for AIX, V9.0
      Version: 09.00.0000.0000
      /nfs/packages/mdx/aix/compilers/5.2.0/va90/root/usr/vacpp/bin/.orig/xlC: 1501-230 (S) Internal compiler error; please contact your Service Representative

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: