<< Back to previous view

[PCC-310] signgam is in user's name space Created: 12/Apr/11  Updated: 13/Apr/11

Status: Closed
Project: pcc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Fred J. Tydeman Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: Intel Core it (64-bit); Linux Fedora Core 14 (64-bit); pcc 1.0.0 of 2011/02/21

Code similar to

#include <math.h>
char signgam[] = "deadbeef";
int main(void){
   double d = lgamma(1.5);
  return 'e' == signgam[1];

gets many errors. The problem is, signgam is the sign of gamma to some
lgamma() functions and violates the user's name space.

Comment by Anders Magnusson [ 13/Apr/11 06:12 PM ]
The math.h header file is property of the system (fedora) and not the compiler, so there is actually nothing that can be done about this in the compiler. Sorry.
Generated at Mon Oct 23 04:41:37 CEST 2017 using JIRA Enterprise Edition, Version: 3.13.1-#333.