public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: pcarlini@unitus.it To: gcc-gnats@gcc.gnu.org Cc: jkanze@caicheuvreuse.com Subject: c++/10529: C++ front-end troubles with uninitialized_fill_n Date: Mon, 28 Apr 2003 22:16:00 -0000 [thread overview] Message-ID: <20030428220809.29073.qmail@sources.redhat.com> (raw) >Number: 10529 >Category: c++ >Synopsis: C++ front-end troubles with uninitialized_fill_n >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Apr 28 22:16:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Paolo Carlini >Release: 3.2.3, 3.3 pre, 3.4 exp >Organization: >Environment: i686-pc-linux-gnu >Description: The compiler fails to compile the attached legal code. paolo:~> g++ ccelide.cc ccelide.cc: In function `void std::_Construct(_T1*, const _T2&) [with _T1 = Track, _T2 = Track]': /usr/local/gcc-exp/include/c++/3.4/bits/stl_uninitialized.h:191: instantiated from `_ForwardIter std::__uninitialized_fill_n_aux(_ForwardIter, _Size, const _Tp&, __false_type) [with _ForwardIter = Track*, _Size = int, _Tp = Track]' /usr/local/gcc-exp/include/c++/3.4/bits/stl_uninitialized.h:216: instantiated from `_ForwardIter std::uninitialized_fill_n(_ForwardIter, _Size, const _Tp&) [with _ForwardIter = Track*, _Size = int, _Tp = Track]' ccelide.cc:26: instantiated from here ccelide.cc:11: error: `Track::Track(const Track&)' is private /usr/local/gcc-exp/include/c++/3.4/bits/stl_construct.h:78: error: within this context >How-To-Repeat: Seems that the C++ frontend is involved: Comeau together with libcomo compiles just fine the testcase and it has the _same_ code (SGI/HP derivation) for uninitialized_fill_n of current libstdc++-v3. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="ccelide.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ccelide.cc" CiNpbmNsdWRlIDxvc3RyZWFtPgojaW5jbHVkZSA8aW9zdHJlYW0+CiNpbmNsdWRlIDxtZW1vcnk+ CgpjbGFzcyBUcmFjawp7CnB1YmxpYzoKICAgIFRyYWNrKCBpbnQgaSApIDsKcHJpdmF0ZToKICAg IFRyYWNrKCBUcmFjayBjb25zdCYgb3RoZXIgKSA7Cgpwcml2YXRlOgogICAgaW50ICAgICAgICAg ICAgICAgICBteUkgOwp9IDsKClRyYWNrOjpUcmFjayggaW50IGkgKQogICAgOiAgIG15SSggaSAp CnsKfQoKaW50Cm1haW4oKQp7CiAgICBUcmFjayogICAgICAgICAgICAgIG1lbSA9IChUcmFjayop OjpvcGVyYXRvciBuZXcoIDMgKiBzaXplb2YoIFRyYWNrICkgKSA7CiAgICBzdGQ6OnVuaW5pdGlh bGl6ZWRfZmlsbF9uKCBtZW0sIDMsIFRyYWNrKCAyICkgKSA7CiAgICBmb3IgKCBpbnQgaSA9IDAg OyBpIDwgMyA7ICsrIGkgKSB7CiAgICAgICAgbWVtWyBpIF0uflRyYWNrKCkgOwogICAgfQogICAg OjpvcGVyYXRvciBkZWxldGUoIG1lbSApIDsKICAgIHJldHVybiAwIDsKfQo=
next reply other threads:[~2003-04-28 22:16 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-28 22:16 pcarlini [this message] 2003-04-28 22:46 bangerth
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=20030428220809.29073.qmail@sources.redhat.com \ --to=pcarlini@unitus.it \ --cc=gcc-gnats@gcc.gnu.org \ --cc=jkanze@caicheuvreuse.com \ /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).