From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11121 invoked by alias); 3 Feb 2010 20:56:44 -0000 Received: (qmail 11086 invoked by uid 48); 3 Feb 2010 20:56:34 -0000 Date: Wed, 03 Feb 2010 20:56:00 -0000 Message-ID: <20100203205634.11085.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/31816] [DR 225] If a function foo is defined before declaring a template class A, overloaded version of foo defined after the class declaration will not be available within class A. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle 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-02/txt/msg00225.txt.bz2 ------- Comment #10 from paolo dot carlini at oracle dot com 2010-02-03 20:56 ------- Thanks. Jason, I was adding [DR 225] to the Subject when I noticed *another* DR 225, PR29131. Do we want to keep both or not? -- paolo dot carlini at oracle dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|If a function foo is defined|[DR 225] If a function foo |before declaring a template |is defined before declaring |class A, overloaded |a template class A, |version of foo defined after|overloaded version of foo |the class declaration will |defined after the class |not be available within |declaration will not be |class A. |available within class A. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31816