← All tasks
cppHowardHinnant/date #589Not a task: already works

error: operator '!' has no right operand (ONLY_C_LOCALE)

envgap__HowardHinnant__date-589

01 / FAILURE SIGNATURE

As reported upstream

/usr/include/date/date.h:3783:19: error: operator '!' has no right operand
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
6952fb50a6a04c1b3682c56e1f1e26578f3bec1e
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

HowardHinnant/date #589 · read the original issue
I get some weird errors when trying to compile with date.h:

```

/usr/include/date/date.h:3783:19: error: operator '!' has no right operand

 3783 | #if !ONLY_C_LOCALE

[...]

```

(For full details: https://launchpadlibrarian.net/488835127/buildlog_ubuntu-focal-amd64.waybar_0.9.2-202007161902-0fe0a856-1focal1_BUILDING.txt.gz.)



Seems like the `ONLY_C_LOCALE` is not defined, but I see

```c++

  #ifndef ONLY_C_LOCALE

  #  define ONLY_C_LOCALE 0

  #endif

```

towards the top of `date.h`.



Any idea what might be wrong?
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]