public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/28588] New: static private function @ 2006-08-03 19:30 dushistov at mail dot ru 2006-08-03 20:16 ` [Bug c++/28588] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: dushistov at mail dot ru @ 2006-08-03 19:30 UTC (permalink / raw) To: gcc-bugs $ cat test.cpp class Foo { static void f() {} }; int main() { Foo foo; void (*f)(); f = foo.f; return 0; } $ g++ -Wall test.cpp && echo "success" success If trying compile it with another compiler http://cpp.sourceforge.net/?show=18471 I got something like this: ComeauTest.c(7): error: function "Foo::f" is inaccessible f = foo.f; -- Summary: static private function Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dushistov at mail dot ru http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/28588] [4.0/4.1/4.2 Regression] static private function 2006-08-03 19:30 [Bug c++/28588] New: static private function dushistov at mail dot ru @ 2006-08-03 20:16 ` pinskia at gcc dot gnu dot org 2006-08-20 22:26 ` mmitchel at gcc dot gnu dot org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-08-03 20:16 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-03 20:16 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to fail| |3.3.3 3.4.0 4.0.0 4.1.0 Last reconfirmed|0000-00-00 00:00:00 |2006-08-03 20:16:41 date| | Summary|static private function |[4.0/4.1/4.2 Regression] | |static private function Target Milestone|--- |4.0.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/28588] [4.0/4.1/4.2 Regression] static private function 2006-08-03 19:30 [Bug c++/28588] New: static private function dushistov at mail dot ru 2006-08-03 20:16 ` [Bug c++/28588] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org @ 2006-08-20 22:26 ` mmitchel at gcc dot gnu dot org 2006-08-25 18:16 ` mmitchel at gcc dot gnu dot org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:26 UTC (permalink / raw) To: gcc-bugs -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/28588] [4.0/4.1/4.2 Regression] static private function 2006-08-03 19:30 [Bug c++/28588] New: static private function dushistov at mail dot ru 2006-08-03 20:16 ` [Bug c++/28588] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org 2006-08-20 22:26 ` mmitchel at gcc dot gnu dot org @ 2006-08-25 18:16 ` mmitchel at gcc dot gnu dot org 2006-08-26 16:23 ` mmitchel at gcc dot gnu dot org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2006-08-25 18:16 UTC (permalink / raw) To: gcc-bugs -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/28588] [4.0/4.1/4.2 Regression] static private function 2006-08-03 19:30 [Bug c++/28588] New: static private function dushistov at mail dot ru ` (2 preceding siblings ...) 2006-08-25 18:16 ` mmitchel at gcc dot gnu dot org @ 2006-08-26 16:23 ` mmitchel at gcc dot gnu dot org 2006-08-26 16:34 ` [Bug c++/28588] [4.0/4.1 " mmitchel at gcc dot gnu dot org 2006-09-09 5:01 ` pinskia at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2006-08-26 16:23 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-08-26 16:23 ------- Subject: Bug 28588 Author: mmitchel Date: Sat Aug 26 16:23:33 2006 New Revision: 116468 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116468 Log: PR c++/28588 * class.c (resolve_address_of_overloaded_function): Add access_path parameter. Perform access checks. (instantiate_type): Adjust call to resolve_address_of_overloaded_function. Remove unnecessary code. * tree.c (is_overloaded_fn): Document. Return 2 when there are acutally multiple functions. (really_overloaded_fn): Use is_overloaded_fn. * mangle.c (write_expression): Handle BASELINKs. * cp-tree.h (really_overloaded_fn): Return bool. (baselink_for_fns): Declare. * search.c (lookup_member): Check access for single static functions here. * pt.c (convert_nontype_argument_function): Handle BASELINKs. (tsubst_copy_and_build): Generate BASELINKs for template-ids. * semantics.c (finish_call_expr): Use baselink_for_fns. (baselink_for_fns): New function. (finish_id_expression): Use it. * parser.c (cp_parser_template_argument): Don't strip BASELINKs. PR c++/28595 * pt.c (tsubst): Issue errors about attempts to create VLAs at template-instantiation time. PR c++/28588 * g++.dg/inherit/access6.C: New test. * g++.dg/inherit/access7.C: Likewise. PR c++/28595 * g++.dg/template/array15.C: New test. * g++.dg/template/crash2.C: Tweak error markers. Added: trunk/gcc/testsuite/g++.dg/inherit/access6.C trunk/gcc/testsuite/g++.dg/inherit/access7.C trunk/gcc/testsuite/g++.dg/template/array15.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/mangle.c trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/search.c trunk/gcc/cp/semantics.c trunk/gcc/cp/tree.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/crash2.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/28588] [4.0/4.1 Regression] static private function 2006-08-03 19:30 [Bug c++/28588] New: static private function dushistov at mail dot ru ` (3 preceding siblings ...) 2006-08-26 16:23 ` mmitchel at gcc dot gnu dot org @ 2006-08-26 16:34 ` mmitchel at gcc dot gnu dot org 2006-09-09 5:01 ` pinskia at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2006-08-26 16:34 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-26 16:34 ------- Fixed in 4.2.0. Will not be fixed in previous releases. -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Summary|[4.0/4.1/4.2 Regression] |[4.0/4.1 Regression] static |static private function |private function http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/28588] [4.0/4.1 Regression] static private function 2006-08-03 19:30 [Bug c++/28588] New: static private function dushistov at mail dot ru ` (4 preceding siblings ...) 2006-08-26 16:34 ` [Bug c++/28588] [4.0/4.1 " mmitchel at gcc dot gnu dot org @ 2006-09-09 5:01 ` pinskia at gcc dot gnu dot org 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-09-09 5:01 UTC (permalink / raw) To: gcc-bugs -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.4 |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-09-09 5:01 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-08-03 19:30 [Bug c++/28588] New: static private function dushistov at mail dot ru 2006-08-03 20:16 ` [Bug c++/28588] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org 2006-08-20 22:26 ` mmitchel at gcc dot gnu dot org 2006-08-25 18:16 ` mmitchel at gcc dot gnu dot org 2006-08-26 16:23 ` mmitchel at gcc dot gnu dot org 2006-08-26 16:34 ` [Bug c++/28588] [4.0/4.1 " mmitchel at gcc dot gnu dot org 2006-09-09 5:01 ` pinskia at gcc dot gnu dot org
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).