Opened 15 years ago

Closed 13 years ago

Last modified 12 years ago

#1451 closed Bugs (fixed)

error: use of C99 long long integer constant

Reported by: Jens Seidel <jensseidel@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost Development Trunk Severity: Problem
Keywords: Cc: jensseidel@…, mateusz@…

Description

Hi,

Boost.Math uses a lot of long long in C++ code which is invalid. g++ complains using -pedantic: boost/math/special_functions/lanczos.hpp|430 col 11| error: use of C99 long long integer constant

Jens

Change History (7)

comment:1 by John Maddock, 15 years ago

Status: newassigned

The use of long long is deliberate: I really do need 64-bit integer constants in those cases.

However, I will try and find a workaround - but not for the 1.35 release.

John.

comment:2 by John Maddock, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [50403]) Split test_policy_2.cpp into multiple smaller tests. Fix use of long long so that code compiles with g++ -pedantic. Update docs to match. Fixes #1451.

comment:3 by anonymous, 14 years ago

Is the bug-fix already incorporated into the stable release?

Because with boost 1.38, I get similar warnings (but in a different header):

[...]/boost_1_38_0/boost/integer_traits.hpp:164:66: warning: use of C99 long long integer constant

[...]/boost_1_38_0/boost/integer_traits.hpp:164:77: warning: use of C99 long long integer constant

[...]/boost_1_38_0/boost/integer_traits.hpp:170:70: warning: use of C99 long long integer constant

[...]/boost_1_38_0/boost/integer_traits.hpp:170:70: warning: use of C99 long long integer constant

Or are the warnings completely unrelated to the error filed here?

comment:4 by anonymous, 13 years ago

Resolution: fixed
Status: closedreopened

comment:5 by mloskot <mateusz@…>, 13 years ago

Cc: mateusz@… added

comment:6 by John Maddock, 13 years ago

Resolution: fixed
Status: reopenedclosed

That's an unrelated issue, but will be fixed in the next release.

comment:7 by anonymous, 12 years ago

[...]/boost_1_38_0/boost/integer_traits.hpp:164:66: warning: use of C99 long long integer constant rosetta stone french

Note: See TracTickets for help on using tickets.