Modify

Opened 10 years ago

Closed 7 years ago

Last modified 7 years ago

#1451 closed Bugs (fixed)

error: use of C99 long long integer constant

Reported by: Jens Seidel <jensseidel@…> Owned by: johnmaddock
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

Attachments (0)

Change History (7)

comment:1 Changed 10 years ago by johnmaddock

  • Status changed from new to assigned

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 Changed 8 years ago by johnmaddock

  • Resolution set to fixed
  • Status changed from assigned to closed

(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 Changed 8 years ago by anonymous

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 Changed 8 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 Changed 8 years ago by mloskot <mateusz@…>

  • Cc mateusz@… added

comment:6 Changed 7 years ago by johnmaddock

  • Resolution set to fixed
  • Status changed from reopened to closed

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

comment:7 Changed 7 years ago by anonymous

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain johnmaddock.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.