From: "BG / Galaxy" <bernard.garros@galaxysemi.com>
To: <gcc-help@gcc.gnu.org>
Subject: gcc3.4.6: std::min and std::max
Date: Thu, 16 Nov 2006 08:51:00 -0000 [thread overview]
Message-ID: <NDBBJMGJBKGCGNAMJHHBMEHJEBAA.bernard.garros@galaxysemi.com> (raw)
Hello,
I recently upgraded my system from Solaris2.5.1/gcc3.3.2 to
Solaris7/gcc3.4.6.
When recompiling my project, I often get errors in gcc files complaining
about lines using std::min or std::max,
ie:
In file included from
/usr/local/lib/gcc/sparc-sun-solaris2.7/3.4.6/../../../../include/c++/3.4.6/
vector:72,
from
/export/home/godev/galaxy_std_libraries/include/gerrormgr.h:32,
from
/export/home/godev/galaxy_std_libraries/include/gatdftostdf.h:45,
from import_all.h:4,
from filter_dialog.cpp:20:
/usr/local/lib/gcc/sparc-sun-solaris2.7/3.4.6/../../../../include/c++/3.4.6/
bits/stl_bvector.h: In member function `void std::vector<bool,
_Alloc>::_M_insert_range(std::_Bit_iterator, _ForwardIterator,
_ForwardIterator, std::forward_iterator_tag)':
/usr/local/lib/gcc/sparc-sun-solaris2.7/3.4.6/../../../../include/c++/3.4.6/
bits/stl_bvector.h:522: error: expected unqualified-id before '(' token
/usr/local/lib/gcc/sparc-sun-solaris2.7/3.4.6/../../../../include/c++/3.4.6/
bits/stl_bvector.h: In member function `void std::vector<bool,
_Alloc>::_M_fill_insert(std::_Bit_iterator, size_t, bool)':
/usr/local/lib/gcc/sparc-sun-solaris2.7/3.4.6/../../../../include/c++/3.4.6/
bits/stl_bvector.h:823: error: expected unqualified-id before '(' token
line 522 is:
const size_type __len = size() + std::max(size(), __n);
line 823 is:
const size_type __len = size() + std::max(size(), __n);
I get the same type of error for fstream.tcc, vector.tcc...
If I remove the std:: namespace specifier, the error disappears, but I'm not
so sure if it is correct.
I downloaded and installed a compiled package of gcc from
www.sunfreeware.com.
Any suggestions?
Thanks,
Bernard
next reply other threads:[~2006-11-16 8:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-16 8:51 BG / Galaxy [this message]
2006-11-16 12:42 ` John Love-Jensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=NDBBJMGJBKGCGNAMJHHBMEHJEBAA.bernard.garros@galaxysemi.com \
--to=bernard.garros@galaxysemi.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).