From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6542 invoked by alias); 8 Mar 2006 13:43:47 -0000 Received: (qmail 6526 invoked by uid 48); 8 Mar 2006 13:43:43 -0000 Date: Wed, 08 Mar 2006 13:43:00 -0000 Subject: [Bug c++/26605] New: enable_if + using troubles X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pcarlini at suse dot de" 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 X-SW-Source: 2006-03/txt/msg00827.txt.bz2 List-Id: EDG-based compilers accept (in strict mode) accept this: template struct is_void { static const bool value = false; }; template<> struct is_void { static const bool value = true; }; template struct enable_if { }; template struct enable_if { typedef T type; }; namespace one { template typename enable_if::value>::type fun(T); } namespace two { using one::fun; template typename enable_if::value>::type fun(T); } ///////////// paolo:~/Work> g++ -c reduced.cc reduced.cc:29: error: 'template typename enable_if::value)>::type two::fun(T)' conflicts with previous using declaration 'template typename enable_if::value>::type one::fun(T)' -- Summary: enable_if + using troubles Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pcarlini at suse dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26605