Open
Description
Code :
volatile struct amber jurassic(); // Should warn (deprecated) — Clang misses this
void trex(volatile short left_arm, volatile short right_arm); // Clang warns (correct)
void fly(volatile struct pterosaur* pteranodon); // OK (no warning expected)
Expected Behavior:
Clang should emit a deprecation warning (-Wvolatile or similar) for the volatile return type in jurassic(), just as GCC does
Actual Behavior:
Clang only warns about volatile parameters (e.g., trex) but silently accepts the deprecated volatile return type.