From stdcxx-dev-return-2816-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Sun Mar 11 22:16:23 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 17913 invoked from network); 11 Mar 2007 22:16:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2007 22:16:23 -0000 Received: (qmail 30312 invoked by uid 500); 11 Mar 2007 22:16:32 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 30295 invoked by uid 500); 11 Mar 2007 22:16:32 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 30284 invoked by uid 99); 11 Mar 2007 22:16:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Mar 2007 15:16:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Mar 2007 14:16:21 -0800 Received: from qxvcexch01.ad.quovadx.com ([192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id l2BMFxtV032014 for ; Sun, 11 Mar 2007 22:15:59 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C7642A.D2B507EC" Subject: RE: openSUSE 10.2 -- gcc 4.1.1/2 -- valarray Date: Sun, 11 Mar 2007 16:14:34 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: openSUSE 10.2 -- gcc 4.1.1/2 -- valarray Thread-Index: AcdkBb3ByCqrZgLZStClvletWLw2RQAIq+VdAACOLSw= References: From: "Scott Zhong" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7642A.D2B507EC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable the main is changed to int main() { slice aSlice; slice_array mySliceArray(aSlice); slice_array my2ndSliceArray =3D mySliceArray; slice bSlice =3D mySliceArray.get_slice(); return 0; } still compiles fine. Yu (Scott) Zhong -----Original Message----- From: Scott Zhong [mailto:scottz@roguewave.com] Sent: Sun 3/11/2007 3:58 PM To: stdcxx-dev@incubator.apache.org; stdcxx-dev@incubator.apache.org Subject: RE: openSUSE 10.2 -- gcc 4.1.1/2 -- valarray =20 test case appears to work. cat t.cpp && gcc -v && gcc t.cpp && ./a.out=20 class slice { public: slice () : a(0), b(0), c(0) { } slice (int _a, int _b, int _c)=20 : a (_a) , b (_b) , c (_c) { } private: int a,b,c; }; template class slice_array { public: slice_array(slice & __rightSlice) : _slice (__rightSlice) { } slice get_slice() const { return _slice; } private: slice_array(); slice_array& operator =3D (const slice_array&); slice _slice; }; int main() { slice aSlice; slice_array mySliceArray(aSlice); slice bSlice =3D mySliceArray.get_slice(); return 0; } Using built-in specs. Target: i686-pc-linux-gnu Configured with: ./configure --prefix=3D/usr/local/gcc411 Thread model: posix gcc version 4.1.1 Yu (Scott) Zhong -----Original Message----- From: Scott Zhong [mailto:scottz@roguewave.com] Sent: Sun 3/11/2007 11:50 AM To: stdcxx-dev@incubator.apache.org Subject: openSUSE 10.2 -- gcc 4.1.1/2 -- valarray =20 on openSUSE 10.2 compiling stdcxx/tests/intro/17.names.cpp with both gcc = 4.1.1 and gcc 4.1.2 gives this error: scottz@linux-c7fg:~/stdcxx> gcc -c -I/home/scottz/stdcxx/include/ansi = -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/home/scottz/stdcxx/include = -I/home/scottz/stdcxx/gcc411/11s/include -I/home/scottz/stdcxx/../rwtest = -I/home/scottz/stdcxx/../rwtest/include = -I/home/scottz/stdcxx/tests/include -pedantic -nostdinc++ -g -W -Wall = -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -v = -Wcast-align /home/scottz/stdcxx/tests/intro/17.names.cpp Using built-in specs. Target: i686-pc-linux-gnu Configured with: ./configure --prefix=3D/usr/local/gcc411 Thread model: posix gcc version 4.1.1 /usr/local/gcc411/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1plus -quiet = -nostdinc++ -v -I/home/scottz/stdcxx/include/ansi = -I/home/scottz/stdcxx/include -I/home/scottz/stdcxx/gcc411/11s/include = -I/home/scottz/stdcxx/../rwtest -I/home/scottz/stdcxx/../rwtest/include = -I/home/scottz/stdcxx/tests/include -D_GNU_SOURCE -D_RWSTDDEBUG = -D_RWSTD_USE_CONFIG /home/scottz/stdcxx/tests/intro/17.names.cpp -quiet = -dumpbase 17.names.cpp -mtune=3Dpentiumpro -auxbase 17.names -g = -pedantic -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings = -Wno-long-long -Wcast-align -version -o /tmp/ccmQNz95.s ignoring nonexistent directory = "/usr/local/gcc411/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-li= nux-gnu/include" ignoring nonexistent directory "/home/scottz/stdcxx/../rwtest" ignoring nonexistent directory "/home/scottz/stdcxx/../rwtest/include" #include "..." search starts here: #include <...> search starts here: /home/scottz/stdcxx/include/ansi /home/scottz/stdcxx/include /home/scottz/stdcxx/gcc411/11s/include /home/scottz/stdcxx/tests/include /usr/local/include /usr/local/gcc411/include /usr/local/gcc411/lib/gcc/i686-pc-linux-gnu/4.1.1/include /usr/include End of search list. GNU C++ version 4.1.1 (i686-pc-linux-gnu) compiled by GNU C version 4.1.2 20061115 (prerelease) (SUSE = Linux). GGC heuristics: --param ggc-min-expand=3D99 --param = ggc-min-heapsize=3D129366 Compiler executable checksum: 3bea10c8b1944d495bcb5dfde72a623e /home/scottz/stdcxx/include/valarray:1314: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray: In copy constructor = 'std::slice_array<_TypeT>::slice_array(const = std::slice_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:1301: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray: At global scope: /home/scottz/stdcxx/include/valarray:1481: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray: In copy constructor = 'std::gslice_array<_TypeT>::gslice_array(const = std::gslice_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:1467: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray: At global scope: /home/scottz/stdcxx/include/valarray:1532: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray: In copy constructor = 'std::mask_array<_TypeT>::mask_array(const std::mask_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:1520: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray: At global scope: /home/scottz/stdcxx/include/valarray:1640: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray: In copy constructor = 'std::indirect_array<_TypeT>::indirect_array(const = std::indirect_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:1627: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray: In function 'void = __rw::__rw_unary_function(const std::slice_array<_TypeT>&, const = std::valarray<_TypeT>&, _UnaryFunction)': /home/scottz/stdcxx/include/valarray:1737: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:1737: error: expected ',' or ';' = before '!' token /home/scottz/stdcxx/include/valarray: In function 'void = __rw::__rw_binary_function(const std::slice_array<_TypeT>&, const = std::valarray<_TypeT>&, _BinaryFunction)': /home/scottz/stdcxx/include/valarray:1757: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:1757: error: expected ',' or ';' = before '!' token /home/scottz/stdcxx/include/valarray: In constructor = 'std::valarray<_TypeT>::valarray(const std::slice_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:2077: error: expected = primary-expression before '(' token /home/scottz/stdcxx/include/valarray:2077: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2079: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2079: error: expected ',' or ';' = before '!' token /home/scottz/stdcxx/include/valarray:2082: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2082: error: expected `)' before = '!' token /home/scottz/stdcxx/include/valarray:2082: error: 'ERROR' was not = declared in this scope /home/scottz/stdcxx/include/valarray:2082: error: expected `;' before = '!' token /home/scottz/stdcxx/include/valarray: In member function = 'std::valarray<_TypeT>& std::valarray<_TypeT>::operator=3D(const = std::slice_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:2098: error: expected = primary-expression before '(' token /home/scottz/stdcxx/include/valarray:2098: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2100: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2100: error: expected ',' or ';' = before '!' token /home/scottz/stdcxx/include/valarray:2103: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2103: error: expected `)' before = '!' token /home/scottz/stdcxx/include/valarray:2103: error: 'ERROR' was not = declared in this scope /home/scottz/stdcxx/include/valarray:2103: error: expected `;' before = '!' token /home/scottz/stdcxx/include/valarray: In constructor = 'std::valarray<_TypeT>::valarray(const std::gslice_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:2144: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2147: error: 'ERROR' was not = declared in this scope /home/scottz/stdcxx/include/valarray:2149: error: expected ',' or ';' = before '!' token /home/scottz/stdcxx/include/valarray:2152: error: expected `)' before = '!' token /home/scottz/stdcxx/include/valarray:2152: error: expected = primary-expression before '.' token /home/scottz/stdcxx/include/valarray:2152: error: expected `;' before = ')' token /home/scottz/stdcxx/include/valarray: In member function = 'std::valarray<_TypeT>& std::valarray<_TypeT>::operator=3D(const = std::gslice_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:2167: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2170: error: 'ERROR' was not = declared in this scope /home/scottz/stdcxx/include/valarray:2172: error: expected ',' or ';' = before '!' token /home/scottz/stdcxx/include/valarray:2175: error: expected `)' before = '!' token /home/scottz/stdcxx/include/valarray:2175: error: expected = primary-expression before '.' token /home/scottz/stdcxx/include/valarray:2175: error: expected `;' before = ')' token /home/scottz/stdcxx/include/valarray: In constructor = 'std::valarray<_TypeT>::valarray(const std::mask_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:2215: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2215: error: expected initializer = before '!' token /home/scottz/stdcxx/include/valarray:2216: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2216: error: expected initializer = before '!' token /home/scottz/stdcxx/include/valarray:2220: error: 'ERROR' was not = declared in this scope /home/scottz/stdcxx/include/valarray:2220: error: expected `;' before = '!' token /home/scottz/stdcxx/include/valarray:2220: error: expected = primary-expression before '->' token /home/scottz/stdcxx/include/valarray:2220: error: expected `)' before = ';' token /home/scottz/stdcxx/include/valarray:2220: error: expected `;' before = ')' token /home/scottz/stdcxx/include/valarray:2227: error: 'ERROR' was not = declared in this scope /home/scottz/stdcxx/include/valarray:2227: error: expected `;' before = '!' token /home/scottz/stdcxx/include/valarray:2227: error: expected = primary-expression before '->' token /home/scottz/stdcxx/include/valarray:2227: error: expected `)' before = ';' token /home/scottz/stdcxx/include/valarray:2227: error: expected `;' before = ')' token /home/scottz/stdcxx/include/valarray: In member function = 'std::valarray<_TypeT>& std::valarray<_TypeT>::operator=3D(const = std::mask_array<_TypeT>&)': /home/scottz/stdcxx/include/valarray:2238: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2238: error: expected initializer = before '!' token /home/scottz/stdcxx/include/valarray:2239: error: expected = unqualified-id before '!' token /home/scottz/stdcxx/include/valarray:2239: error: expected initializer = before '!' token /home/scottz/stdcxx/include/valarray:2243: error: 'ERROR' was not = declared in this scope /home/scottz/stdcxx/include/valarray:2243: error: expected `;' before = '!' token /home/scottz/stdcxx/include/valarray:2243: error: expected = primary-expression before '->' token /home/scottz/stdcxx/include/valarray:2243: error: expected `)' before = ';' token /home/scottz/stdcxx/include/valarray:2243: error: expected `;' before = ')' token /home/scottz/stdcxx/include/valarray:2251: error: 'ERROR' was not = declared in this scope /home/scottz/stdcxx/include/valarray:2251: error: expected `;' before = '!' token /home/scottz/stdcxx/include/valarray:2251: error: expected = primary-expression before '->' token /home/scottz/stdcxx/include/valarray:2251: error: expected `)' before = ';' token /home/scottz/stdcxx/include/valarray:2251: error: expected `;' before = ')' token Yu (Scott) Zhong ------_=_NextPart_001_01C7642A.D2B507EC--