[Bug c++/48078] gcc accepts-invalid: taking address of private member function from template function

2011-05-27 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48078 --- Comment #5 from Jonathan Wakely 2011-05-27 15:11:29 UTC --- This bug is probably the reason why g++ only rejects half of the testcase for http://llvm.org/bugs/show_bug.cgi?id=8058

[Bug c++/48078] gcc accepts-invalid: taking address of private member function from template function

2011-05-11 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48078 --- Comment #4 from Jonathan Wakely 2011-05-11 10:35:28 UTC --- I've just hit another variation of this bug myself. Reduced: class F { void f(); }; template void b() { (void) &F::f; } template void b();

[Bug c++/48078] gcc accepts-invalid: taking address of private member function from template function

2011-03-11 Thread cgd at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48078 --- Comment #3 from Chris Demetriou 2011-03-11 19:59:40 UTC --- (In reply to comment #2) > I think this is different enough from any of those others to count as a > distinct bug - confirmed I hadn't seen them when i filed this (didn't match the

[Bug c++/48078] gcc accepts-invalid: taking address of private member function from template function

2011-03-11 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48078 Jonathan Wakely changed: What|Removed |Added Keywords||accepts-invalid Status|UNCO

[Bug c++/48078] gcc accepts-invalid: taking address of private member function from template function

2011-03-11 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48078 --- Comment #1 from Jonathan Wakely 2011-03-11 17:38:17 UTC --- Access checking inside templates seems to be completely broken, see PR 47346 and the bugs I listed there, this could be a dup of one of them