From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44004 invoked by alias); 30 Jun 2015 20:00:11 -0000 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 Received: (qmail 43912 invoked by uid 48); 30 Jun 2015 20:00:04 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/66686] Instantiation of dependent template template parameter with non-dependent template rejected Date: Tue, 30 Jun 2015 20:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-06/txt/msg03422.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66686 --- Comment #4 from Martin Sebor --- Y takes a non-type template argument which isn't provided and can't be deduced in the instantiation (i.e., what would the value of N be in Y?) Modifying the test case a bit to see the type Clang gives a.a shows that it winds up instantiating an object of type A even though no such type exists, indicating it's a Clang bug. $ cat t.cpp && /build/llvm-3.6.0/bin/clang++ -Wall -Wextra -Wpedantic t.cpptemplate