public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45011] New: template function specialization: does not respect access specifier
@ 2010-07-20 21:51 eisenstatdavid+gcc at gmail dot com
2010-07-20 21:54 ` [Bug c++/45011] " pinskia at gcc dot gnu dot org
2010-07-24 20:21 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: eisenstatdavid+gcc at gmail dot com @ 2010-07-20 21:51 UTC (permalink / raw)
To: gcc-bugs
$ /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 "<built-in>"
# 1 "<command-line>"
# 1 "test.cc"
class C {
private:
typedef int Private;
};
template<typename T> void function(typename T::Private);
template<> void function<C>(int parameter) {
}
int main() {
function<C>(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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-24 20:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-20 21:51 [Bug c++/45011] New: template function specialization: does not respect access specifier eisenstatdavid+gcc at gmail dot com
2010-07-20 21:54 ` [Bug c++/45011] " pinskia at gcc dot gnu dot org
2010-07-24 20:21 ` 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).