--- Comment #2 from dpirch at gmail dot com 2009-02-18 22:16 ---
extfunc cannot change the value of f, it would lead to undefined behavior.
"If an attempt is made to modify an object defined with a const-qualified type
through use of an lvalue with non-const-qualified type, the behavior
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-02-18 18:38 ---
const fptr_t f = inlinable;
extfunc(&f);
f();
extfunc can change the value of f so this is invalid.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added