public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "JurgenvonOerthel at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/19373] New: Including STL headers in a namespace doesn't compile Date: Tue, 11 Jan 2005 14:19:00 -0000 [thread overview] Message-ID: <20050111141854.19373.JurgenvonOerthel@hotmail.com> (raw) The following code doesn't compile: namespace foo { #include <vector> } int main (void) { return 0; } Many errors follow, the first one looks like: In file included from /sys/cadappl_linuxi386_borealis/gcc/3.3.3/include/c++/3.3.3/cstring:49, from /sys/cadappl_linuxi386_borealis/gcc/3.3.3/include/c++/3.3.3/bits/stl_algob ase.h:65, from /sys/cadappl_linuxi386_borealis/gcc/3.3.3/include/c++/3.3.3/vector:67, from map_test.cc:2: /sys/cadappl_linuxi386_borealis/gcc/3.3.3/include/c++/3.3.3/cstddef:52: error: ` ptrdiff_t' not declared /sys/cadappl_linuxi386_borealis/gcc/3.3.3/include/c++/3.3.3/cstddef:53: error: ` size_t' not declared -- Summary: Including STL headers in a namespace doesn't compile Product: gcc Version: 3.3.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: JurgenvonOerthel at hotmail dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19373
next reply other threads:[~2005-01-11 14:19 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-01-11 14:19 JurgenvonOerthel at hotmail dot com [this message] 2005-01-11 14:20 ` [Bug c++/19373] " pinskia at gcc dot gnu dot org 2005-01-11 19:48 ` gdr at integrable-solutions dot net 2005-01-11 22:49 ` bkoz at gcc dot gnu dot org
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=20050111141854.19373.JurgenvonOerthel@hotmail.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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: linkBe 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).