https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
--- Comment #9 from Jakub Jelinek ---
Author: jakub
Date: Tue Jan 12 08:21:53 2016
New Revision: 232259
URL: https://gcc.gnu.org/viewcvs?rev=232259=gcc=rev
Log:
PR c++/66808
PR c++/69000
* pt.c (tsubst_decl): If not
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
Jakub Jelinek changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
Markus Trippelsdorf changed:
What|Removed |Added
CC||rogero at howzatt dot
demon.co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
--- Comment #7 from Jakub Jelinek ---
Created attachment 37095
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37095=edit
gcc6-pr66808.patch
Untested fix. My understanding is that the tsubst_decl code just in some cases
does not expect a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
--- Comment #8 from Roger Orr ---
Thank you.
I've tested the fix and it successfully compiles works both the sample program
uploaded to my duplicate pr69000 and also my original presenting case.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
--- Comment #4 from David Binderman dcb314 at hotmail dot com ---
(In reply to David Binderman from comment #0)
Created attachment 35932 [details]
gzipped C++ source code
gcc trunk dated 20150707 does this
$ ../results/bin/gcc -c -O2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
Markus Trippelsdorf trippels at gcc dot gnu.org changed:
What|Removed |Added
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
Marek Polacek mpolacek at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66808
--- Comment #3 from Markus Trippelsdorf trippels at gcc dot gnu.org ---
template typename class A {
int *destroyThreadState_threadStatus = getThreadStatus();
int *getThreadStatus() {
static __thread int a;
return a;
}
};
Aint b;
10 matches
Mail list logo