http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46001

           Summary: [4.6 Regression] diagnostic refers to type
                    '__java_boolean'
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: r...@gcc.gnu.org


struct S
{
  char* p;
  unsigned char f : 1;
};

struct S s;
void* a = s.p | s.f;

4.6 gives:

jb.cc:8:19: error: invalid operands of types 'char*' and '__java_boolean' to
binary 'operator|'

previous versions give the expected error:

jb.cc:8:19: error: invalid operands of types 'char*' and 'unsigned char:1' to
binary 'operator|'

Reply via email to