-
Bug
-
Resolution: Unresolved
-
Low
-
Code Generation Tools
-
CODEGEN-4259
-
Below runtime test fails armcl for first case:
Cutdown test case:
#include <typeinfo>
struct B { virtual void mf(void) {} };
struct D :B {} d, &r = d, *p = &d;
int main(void) {
if (noexcept(typeid(d)))
<-- this line fails
if (noexcept(typeid(*p)))
if (noexcept(typeid(r)))
{ printf("fail r\n"); }}
Test is for noexcept operator 5.3.7;3a(7)
noexcept is false if: a potentially-evaluated typeid expression applied to a glvalue expression
whose type is a polymorphic class type.