Yes, that is still undefined behavior. Behavior being defined or not is a standards-level distinction, not a compiler one.