public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15671] New: definition fails to find templated constructor declaration
@ 2004-05-27 17:51 igodard at pacbell dot net
  2004-05-27 17:57 ` [Bug c++/15671] " igodard at pacbell dot net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2004-05-27 17:51 UTC (permalink / raw)
  To: gcc-bugs

 

-- 
           Summary: definition fails to find templated constructor
                    declaration
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/15671] definition fails to find templated constructor declaration
  2004-05-27 17:51 [Bug c++/15671] New: definition fails to find templated constructor declaration igodard at pacbell dot net
@ 2004-05-27 17:57 ` igodard at pacbell dot net
  2004-05-27 18:06 ` igodard at pacbell dot net
  2004-06-01 14:45 ` bangerth at dealii dot org
  2 siblings, 0 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2004-05-27 17:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2004-05-27 05:23 -------
Created an attachment (id=6393)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6393&action=view)
Compiler output (-v -save-temps)

The problem here may have the same cause as 15670, which is the same source
code. Or maybe not :-)

-- 


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


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

* [Bug c++/15671] definition fails to find templated constructor declaration
  2004-05-27 17:51 [Bug c++/15671] New: definition fails to find templated constructor declaration igodard at pacbell dot net
  2004-05-27 17:57 ` [Bug c++/15671] " igodard at pacbell dot net
@ 2004-05-27 18:06 ` igodard at pacbell dot net
  2004-06-01 14:45 ` bangerth at dealii dot org
  2 siblings, 0 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2004-05-27 18:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2004-05-27 05:24 -------
Created an attachment (id=6394)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6394&action=view)
Source code (-save-temps)


-- 


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


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

* [Bug c++/15671] definition fails to find templated constructor declaration
  2004-05-27 17:51 [Bug c++/15671] New: definition fails to find templated constructor declaration igodard at pacbell dot net
  2004-05-27 17:57 ` [Bug c++/15671] " igodard at pacbell dot net
  2004-05-27 18:06 ` igodard at pacbell dot net
@ 2004-06-01 14:45 ` bangerth at dealii dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-06-01 14:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-06-01 14:44 -------
You have these templated constructors in your class declaration: 
   template<typename R> 
    Powerset(Range<R> r, Alloc<E> alloc = Alloc<E>()); 
 
   template<typename R> 
    Powerset(Row<Range<R> > r, Alloc<E> alloc = Alloc<E>()); 
 
and you try to define this one: 
  template<typename E, template<typename> class Alloc> 
  template<typename R> 
  inline 
  Powerset<E, Alloc>:: 
  Powerset(Range<R> r, 
           const Alloc<E>& a) 
Obviously, it must be the first declaration, since the first argument 
is Range<R>, not Row<Range<R> >, but in the declaration the second 
argument is a value, while in the definition it is a reference. So 
the compiler seems right to complain, no? 
 
W. 

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


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


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

end of thread, other threads:[~2004-06-01 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-27 17:51 [Bug c++/15671] New: definition fails to find templated constructor declaration igodard at pacbell dot net
2004-05-27 17:57 ` [Bug c++/15671] " igodard at pacbell dot net
2004-05-27 18:06 ` igodard at pacbell dot net
2004-06-01 14:45 ` bangerth at dealii 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).