From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6199 invoked by alias); 5 Dec 2012 08:33:09 -0000 Received: (qmail 5991 invoked by uid 48); 5 Dec 2012 08:32:42 -0000 From: "niels at penneman dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55311] Cannot specialize template parameter of type 'const char *const' in 'using' alias Date: Wed, 05 Dec 2012 08:33: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-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: niels at penneman dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-12/txt/msg00433.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55311 --- Comment #2 from Niels Penneman 2012-12-05 08:32:42 UTC --- Workaround for GCC 4.8.0-alpha20121202 (full version details see earlier post) for case #2: replace STRING_PTR template parameter with static_cast(STRING_PTR). Example code below with same invocation arguments is accepted by the compiler. =================================================== extern constexpr char STRING_PTR[] = "test"; template struct A {}; template struct B: A(STRING_PTR), T> {}; =================================================== This workaround does not work for case #1 (with 'using') and does not seem to work on 4.7.2 in general.