From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7043 invoked by alias); 20 Jul 2010 21:51:45 -0000 Received: (qmail 6671 invoked by uid 48); 20 Jul 2010 21:51:25 -0000 Date: Tue, 20 Jul 2010 21:51:00 -0000 Subject: [Bug c++/45011] New: template function specialization: does not respect access specifier X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "eisenstatdavid+gcc at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg02127.txt.bz2 $ /ltmp/bin/g++ -v Using built-in specs. COLLECT_GCC=/ltmp/bin/g++ COLLECT_LTO_WRAPPER=/ltmp/libexec/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ./configure --prefix=/ltmp --with-gimp=/ltmp --with-mpfr=/ltmp --with-mpc=/ltmp Thread model: posix gcc version 4.6.0 20100720 (experimental) (GCC) $ /ltmp/bin/g++ -save-temps test.cc $ cat test.ii # 1 "test.cc" # 1 "" # 1 "" # 1 "test.cc" class C { private: typedef int Private; }; template void function(typename T::Private); template<> void function(int parameter) { } int main() { function(0); } $ -- Summary: template function specialization: does not respect access specifier Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: eisenstatdavid+gcc at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45011