public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55724] New: Default type of a template value is not working
@ 2012-12-17 19:08 vince.rev at gmail dot com
  2012-12-17 19:14 ` [Bug c++/55724] [C++11] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: vince.rev at gmail dot com @ 2012-12-17 19:08 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55724

             Bug #: 55724
           Summary: Default type of a template value is not working
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vince.rev@gmail.com


The following code does not compile with g++ 4.7 :

--------------------------------------------
template<int N> struct S {};
template<typename T = int, T N> void f(S<N>) {}
int main() { S<1> s; f(s); }
--------------------------------------------

(source : http://stackoverflow.com/q/13915835/882932)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-12-20  3:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-17 19:08 [Bug c++/55724] New: Default type of a template value is not working vince.rev at gmail dot com
2012-12-17 19:14 ` [Bug c++/55724] [C++11] " pinskia at gcc dot gnu.org
2012-12-17 19:26 ` ed at catmur dot co.uk
2012-12-17 19:47 ` [Bug c++/55724] [4.7/4.8 Regression] " redi at gcc dot gnu.org
2012-12-18 15:09 ` rguenth at gcc dot gnu.org
2012-12-18 17:53 ` jason at gcc dot gnu.org
2012-12-19 22:23 ` jason at gcc dot gnu.org
2012-12-20  2:58 ` jason at gcc dot gnu.org
2012-12-20  3:00 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).