g++ member function .at() for arrays

2013-03-08 Thread Robin Whittle
I am a newbie to this list. Thanks for GCC, g++ the C++ standard library and GDB! Apologies in advance if I have missed a web page where this question is answered. Perhaps this question belongs on the libstdc++ list. With g++ 4:4.7.2-1 and libstdc++6 4.7.2-4, installed on 64 bit Debian, using t

Re: g++ member function .at() for arrays

2013-03-08 Thread Robin Whittle
Further to my previous message, the start of my program is: #include #include #include #include #include using std::vector; using std::deque; using std::cout; using std::endl; int main(int argc, char **argv) { int aa1[4] = {0, 1, 2, 3}; vector vv1{50, 51, 52, 53}; deque dd1{100, 1

Re: g++ member function .at() for arrays

2013-03-08 Thread James Dennett
On Fri, Mar 8, 2013 at 12:42 AM, Robin Whittle wrote: > I am a newbie to this list. Thanks for GCC, g++ the C++ standard > library and GDB! Apologies in advance if I have missed a web page where > this question is answered. Perhaps this question belongs on the > libstdc++ list. It doesn't belo

Re: g++ member function .at() for arrays

2013-03-08 Thread Florian Weimer
On 03/08/2013 10:07 AM, Robin Whittle wrote: Further to my previous message, the start of my program is: int aa1[4] = {0, 1, 2, 3}; This should work: std::array aa1 = {0, 1, 2, 3}; Your question is more appropriate for the gcc-help mailing list. I'm redirecting it there. -- Flori

ADDR_SPACE_CONVERT_EXPR always expanded to 0?

2013-03-08 Thread Georg-Johann Lay
While implementing PR56263 (Strict address-space checking for AVR), I encountered the problem that pointer casts with address spaces are always expanded as const_int 0. The problem occurs if the attached patch that implements PR56263 and the following code is compiled as $ avr-gcc -Os flash-cast.

Re: ADDR_SPACE_CONVERT_EXPR always expanded to 0?

2013-03-08 Thread Richard Biener
On Fri, Mar 8, 2013 at 2:57 PM, Georg-Johann Lay wrote: > While implementing PR56263 (Strict address-space checking for AVR), I > encountered the problem that pointer casts with address spaces are always > expanded as const_int 0. > > The problem occurs if the attached patch that implements PR5626

Re: ADDR_SPACE_CONVERT_EXPR always expanded to 0?

2013-03-08 Thread Richard Biener
On Fri, Mar 8, 2013 at 3:19 PM, Richard Biener wrote: > On Fri, Mar 8, 2013 at 2:57 PM, Georg-Johann Lay wrote: >> While implementing PR56263 (Strict address-space checking for AVR), I >> encountered the problem that pointer casts with address spaces are always >> expanded as const_int 0. >> >> T

Re: ADDR_SPACE_CONVERT_EXPR always expanded to 0?

2013-03-08 Thread Georg-Johann Lay
Richard Biener wrote: > On Fri, Mar 8, 2013 at 3:19 PM, Richard Biener > wrote: >> On Fri, Mar 8, 2013 at 2:57 PM, Georg-Johann Lay wrote: >>> While implementing PR56263 (Strict address-space checking for AVR), I >>> encountered the problem that pointer casts with address spaces are always >>> exp

GNU MPFR 3.1.2 Release Candidate

2013-03-08 Thread Vincent Lefevre
The release of GNU MPFR 3.1.2 ("canard à l'orange" patch level 2) is imminent. Please help to make this release as good as possible by downloading and testing this release candidate: http://www.mpfr.org/mpfr-3.1.2/mpfr-3.1.2-rc1.tar.xz http://www.mpfr.org/mpfr-3.1.2/mpfr-3.1.2-rc1.tar.bz2 http://w

Re: Question on building a variably modified type at parameter scope

2013-03-08 Thread YU Chenkan
I found this is a bug in my front end because I used the same type for the parameters in different functions, so the references to the parameter in the structure messed up. The thing I want to implement is creating something like this pointers in C++ of structure type whose variably modified field

Re: Question on building a variably modified type at parameter scope

2013-03-08 Thread Eric Botcazou
> I found this is a bug in my front end because I used the same type for the > parameters in different functions, so the references to the parameter in > the structure messed up. > > The thing I want to implement is creating something like this pointers in > C++ of structure type whose variably mo

GSOC 2013 ranking rubric for potential projects

2013-03-08 Thread Benjamin De Kosnik
Hey all. I'm getting private email about potential project for Google Summer of Code 2013. This is great, and I'm glad to see interest. Although I've enjoyed mentoring people in the past, I will not be mentoring this year. However, I do plan on reviewing potential GCC/libstdc++ GSOC applicatio

gcc-4.6-20130308 is now available

2013-03-08 Thread gccadmin
Snapshot gcc-4.6-20130308 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20130308/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.6 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches