public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24690]  New: error using TinyVector temporary as default constructor value
@ 2005-11-06  3:02 faheem at email dot unc dot edu
  2005-11-06  3:06 ` [Bug c++/24690] " faheem at email dot unc dot edu
  2005-11-06  4:37 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: faheem at email dot unc dot edu @ 2005-11-06  3:02 UTC (permalink / raw)
  To: gcc-bugs

Using TinyVector from the Blitz++ C++ library (http://www.oonumerics.org/b as a
temporary to initialize a default constructor values gives errors. The actual
code follows. Preprocessed code attached.

#include <blitz/tinyvec-et.h>

class Foo
{
  blitz::TinyVector<double, 3> x;

  Foo(blitz::TinyVector<double, 3> _x =
      blitz::TinyVector<double, 3>(0.0))
    : x(_x){}
};

int main()
{
  return 0;
}


-- 
           Summary: error using TinyVector temporary as default constructor
                    value
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: faheem at email dot unc dot edu


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


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

* [Bug c++/24690] error using TinyVector temporary as default constructor value
  2005-11-06  3:02 [Bug c++/24690] New: error using TinyVector temporary as default constructor value faheem at email dot unc dot edu
@ 2005-11-06  3:06 ` faheem at email dot unc dot edu
  2005-11-06  4:37 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: faheem at email dot unc dot edu @ 2005-11-06  3:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from faheem at email dot unc dot edu  2005-11-06 03:05 -------
Created an attachment (id=10158)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10158&action=view)
Preprocessed file showing the error

Error is:

foo.cc:15: error: type specifier omitted for parameter
foo.cc:15: error: parse error before numeric constant
foo.cc:16: error: missing ';' before right brace


-- 


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


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

* [Bug c++/24690] error using TinyVector temporary as default constructor value
  2005-11-06  3:02 [Bug c++/24690] New: error using TinyVector temporary as default constructor value faheem at email dot unc dot edu
  2005-11-06  3:06 ` [Bug c++/24690] " faheem at email dot unc dot edu
@ 2005-11-06  4:37 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-06  4:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-11-06 04:37 -------
This is a dup of bug 57.  There is still an open question in the C++ standards
committee if this is valid or invalid code. So right now GCC is correct.

*** 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=24690


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

end of thread, other threads:[~2005-11-06  4:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-06  3:02 [Bug c++/24690] New: error using TinyVector temporary as default constructor value faheem at email dot unc dot edu
2005-11-06  3:06 ` [Bug c++/24690] " faheem at email dot unc dot edu
2005-11-06  4:37 ` 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).