Bug 43720 - devel/re2c fixes for GCC 3.2
Summary: devel/re2c fixes for GCC 3.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: eivind
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-05 18:40 UTC by Craig Rodrigues
Modified: 2002-11-28 19:31 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (2.46 KB, patch)
2002-10-05 18:40 UTC, Craig Rodrigues
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Rodrigues 2002-10-05 18:40:11 UTC
    Need to change uchar to char in a few places.
    In GCC 3.2, ostream is a typedef:
    typedef basic_ostream<char>  ostream;

    Since this template can only for char, it is invalid to do something like:
    uchar foo;
    ostream.write(foo);

    Changing uchar to char does not hurt things because:
    sizeof(char) == sizeof(uchar)

    but:

    typeof(char) != typeof(uchar)

    GCC 3.2 is much more fussy about enforcing types for templates
Comment 1 Christian Weisgerber freebsd_committer freebsd_triage 2002-10-05 20:05:02 UTC
Responsible Changed
From-To: freebsd-ports->eivind

over to maintainer
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2002-11-28 19:30:51 UTC
State Changed
From-To: open->closed

Committed, thanks