[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#766380: UINT64_C should not be defined in C++



Package:  libc6-dev
Version: 2.19-11
Severity: important

ISO C99 standard (7.18.4) specifies that C++ implementations should
define UINT64_C only when
__STDC_CONSTANT_MACROS is defined.

On wheezy:

$ g++ t.cxx
t.cxx: In function ‘int main()’:
t.cxx:6:26: error: ‘UINT64_C’ was not declared in this scope

On sid:

$ g++ t.cxx
-> no error

With:

$ cat t.cxx
//#define __STDC_CONSTANT_MACROS
#include <stdint.h>

int main()
{
  uint64_t t = UINT64_C(0);
  return 0;
}


This is a regression, therefore using severity important.

Thx


Reply to: