http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58192
Bug ID: 58192 Summary: G++ emits incorrect code when passing enum classes as function parameters Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: temporal at gmail dot com Demonstration attached. It repros with g++ 4.8.1 (tested on Ubuntu and Cygwin). I think I saw similar problems with g++ 4.7.3, but this particular test case does not seem to repro with it.