Files
Jakub Jelinek aae1b038f8 c++: Fix up check for typeid on polymorphic type before C++20 [PR123347]
The following testcase ICEs since TYPE_POLYMORPHIC_P macro has been
changed to allow being used only on RECORD_TYPE/UNION_TYPE.
This particular spot wasn't adjusted.

2026-01-03  Jakub Jelinek  <jakub@redhat.com>

	PR c++/123347
	* constexpr.cc (potential_constant_expression_1): Check for
	CLASS_TYPE_P before using TYPE_POLYMORPHIC_P on TREE_TYPE (e).

	* g++.dg/cpp1y/pr123347.C: New test.
2026-01-03 12:16:51 +01:00
..
2025-05-02 09:36:58 -04:00
2025-07-08 08:48:40 -04:00