From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30286 invoked by alias); 18 Oct 2003 15:46:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30279 invoked by uid 48); 18 Oct 2003 15:46:32 -0000 Date: Sat, 18 Oct 2003 16:19:00 -0000 Message-ID: <20031018154632.30278.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20031018082407.12672.igodard@pacbell.net> References: <20031018082407.12672.igodard@pacbell.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/12672] Evals template defaults args that it should not X-Bugzilla-Reason: CC X-SW-Source: 2003-10/txt/msg01482.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12672 ------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-18 15:46 ------- Here is the example without an extra includes, I have not looked to see what the standard says abou this though: template class it { typedef typename i::iterator_category iterator_category; }; template class UT { public: U u;}; template::iterator_category> class Aux { public: typedef UT R; }; template class R { public: T t;}; template typename Aux::R Foo(T t) { return 0; } template void Foo(T, T); void Foo(int, int) { } template T Bar(T, T); inline int Bar(int i1, int i2) { return i1; } inline char Bar(char c1, char c2) { return c1; } int main() { Bar(0, 1); Bar(0, 1); Bar(0, 1); Foo(1, 2); Foo(1, 2); }