This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/61543] static_cast<void *>(static_cast<int>(enum_value)) doesn't get an error


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61543

--- Comment #3 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> ---
(In reply to Vaughn Cato from comment #2)
> I'm not sure it is related to bug 49171.

I agree and withdraw my previous comparison. I didn't notice that the result of
the conversion is not used within a context that would require a constant
expression.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]