public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39948]  New: Cannot set default  arguments in methods when methods contain multiple templates...
@ 2009-04-28 16:09 Lee at Gregory dot uk dot net
  2009-04-28 16:14 ` [Bug c++/39948] " Lee at Gregory dot uk dot net
  2009-04-28 16:52 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: Lee at Gregory dot uk dot net @ 2009-04-28 16:09 UTC (permalink / raw)
  To: gcc-bugs

I found that the compiler was unable to compile the code when a method had
default values for its arguments. 

This only seems to happen when the argument had multiple templates and when in
a method. The same code compiles when inside a function outside of a class.
Also, the code compiles if a typedef is used....


-- 
           Summary: Cannot set default  arguments in methods when methods
                    contain multiple templates...
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Lee at Gregory dot uk dot net


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


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

* [Bug c++/39948] Cannot set default  arguments in methods when methods contain multiple templates...
  2009-04-28 16:09 [Bug c++/39948] New: Cannot set default arguments in methods when methods contain multiple templates Lee at Gregory dot uk dot net
@ 2009-04-28 16:14 ` Lee at Gregory dot uk dot net
  2009-04-28 16:52 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: Lee at Gregory dot uk dot net @ 2009-04-28 16:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from Lee at Gregory dot uk dot net  2009-04-28 16:14 -------
Created an attachment (id=17775)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17775&action=view)
Very simple code, testFunc function compiles, but testFunc method does not.

It is very strange that testFunc (function) compiles, but testFunc (method)
does not. Also, the identical method, testFunc3 compiles because the default
param was defined as a typedef. 


-- 


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


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

* [Bug c++/39948] Cannot set default  arguments in methods when methods contain multiple templates...
  2009-04-28 16:09 [Bug c++/39948] New: Cannot set default arguments in methods when methods contain multiple templates Lee at Gregory dot uk dot net
  2009-04-28 16:14 ` [Bug c++/39948] " Lee at Gregory dot uk dot net
@ 2009-04-28 16:52 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-28 16:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-04-28 16:51 -------


*** This bug has been marked as a duplicate of 57 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2009-04-28 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-28 16:09 [Bug c++/39948] New: Cannot set default arguments in methods when methods contain multiple templates Lee at Gregory dot uk dot net
2009-04-28 16:14 ` [Bug c++/39948] " Lee at Gregory dot uk dot net
2009-04-28 16:52 ` pinskia at gcc dot gnu dot 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).