Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Invalid bugprone-throw-keyword-missing diagnostic #51564

Open Quuxplusone opened 2 years ago

Quuxplusone commented 2 years ago
Bugzilla Link PR52597
Status NEW
Importance P enhancement
Reported by Igor Akhmetov (igor.akhmetov@gmail.com)
Reported on 2021-11-24 07:33:10 -0800
Last modified on 2021-11-24 08:30:29 -0800
Version unspecified
Hardware PC Windows NT
CC alexfh@google.com, djasper@google.com, dkszelethus@gmail.com, eugene.zelenko@gmail.com, klimek@google.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
https://gcc.godbolt.org/z/KPT63bY5b:

#include <exception>

class MyException : public std::exception {};

class A {
public:
    MyException m_MyException;
};

A g_A;

void Test68() {
    new (&g_A) A{};
}