--- Comment #5 from jakub at gcc dot gnu dot org 2010-09-09 07:16 ---
Fixed.
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
Status|ASSIGNED
--- Comment #4 from jakub at gcc dot gnu dot org 2010-09-09 06:51 ---
Subject: Bug 45588
Author: jakub
Date: Thu Sep 9 06:50:56 2010
New Revision: 164051
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164051
Log:
PR c++/45588
* pt.c (tsubst) : Call mark_rvalue_u
--- Comment #3 from jakub at gcc dot gnu dot org 2010-09-07 22:45 ---
Reproduced with:
void bar (unsigned char *);
template
struct S
{
static const int k = 6;
};
template
const int S::k;
template
void foo ()
{
const int i = S::k;
unsigned char a[i];
bar (a);
}
void bar ()
--- Comment #2 from paolo dot carlini at oracle dot com 2010-09-07 22:28
---
Let's add Jakub in CC.
--
paolo dot carlini at oracle dot com changed:
What|Removed |Added
--- Comment #1 from amodra at gmail dot com 2010-09-07 21:59 ---
Confirmed on powerpc-linux 4.6.0 20100905
$ ~/build/ppc/gcc-curr/gcc/g++ -B ~/build/ppc/gcc-curr/gcc/ -I
~/build/ppc/gcc-curr/powerpc-linux/libstdc++-v3/include/powerpc-linux -I
~/build/ppc/gcc-curr/powerpc-linux/libstdc++-