https://bugs.llvm.org/show_bug.cgi?id=47422

            Bug ID: 47422
           Summary: Avoiding the destructor in C++17 mode miscompilation
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: kutdan...@yandex.ru
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

https://godbolt.org/z/5WTvox

After "1" in the output the destructor is called only twice in C++17 mode. This
leads to a lead

In <=C++14 and in gcc it works. I don't see any violations of the standard
there

Probably it was like this since C++17 support

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to