Skip to content

Problem using check 0.11.0 on OS X #110

@njh

Description

@njh

Hello,

I have just tried using check 0.11.0 on OS 10.12.1:

Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.1.0

The error message from clang is:

/usr/local/Cellar/check/0.11.0/include/check.h:686:37: error: invalid suffix on literal; C++11 requires a space
      between literal and identifier [-Wreserved-user-defined-literal]
  "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g", \
                                    ^
                                     
/usr/local/Cellar/check/0.11.0/include/check.h:686:53: error: invalid suffix on literal; C++11 requires a space
      between literal and identifier [-Wreserved-user-defined-literal]
  "Assertion '%s' failed: %s == %.*"TM"g, %s == %.*"TM"g", \
                                                    ^
                                                     
/usr/local/Cellar/check/0.11.0/include/check.h:698:39: error: invalid suffix on literal; C++11 requires a space
      between literal and identifier [-Wreserved-user-defined-literal]
    "Assertion '%s' failed: %s == %.*"TM"g", \
                                      ^

I fixed it very easily by putting a space on either side of TM but I am confused as to why nobody else has seen this and why it hasn't been picked up my Travis. Perhaps because I am using a newer version of clang?

I am happy to send a Pull Request, if you think it is the right thing to do.

nick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions