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



             Bug #: 57068

           Summary: gcc prints warning "ref-qualifiers only available with

                    -std=c++0x or -std=gnu++0x" for operator&

    Classification: Unclassified

           Product: gcc

           Version: 4.8.1

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: c++

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: kai.koe...@digia.com





Created attachment 29934

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29934

minimal test file demonstrating the problem



gcc from 4.8 svn branch prints an incorrect warning about "ref-qualifiers only

available with -std=c++0x or -std=gnu++0x" for a line like



if (bool(windowState() & Enum1) == true)



where the & is actually an operator& for the class returned by windowState().

Attached code demonstrates the problem.



I didn't have this problem with gcc 4.8.0.

Reply via email to