https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83652

            Bug ID: 83652
           Summary: template substitution fails on operator
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sameer.varyani at gmail dot com
  Target Milestone: ---

Created attachment 43008
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43008&action=edit
testcase

template substitution failure in the attached code resulting in following
error:

test.cpp: In function ‘int main()’:
test.cpp:34:4: error: invalid conversion from ‘int’ to ‘Enum_t’ [-fpermissive]
  b ^= somedef;

Also broken in gcc 6.2.0

This code is confirmed to be working with clang+ and VS++15.

Reply via email to