https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58848
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58848
--- Comment #3 from Jonathan Wakely ---
The initializer for ReferenceElement::v calls the function in
a constant expression, but G++ doesn't diagnose it unless you instantiate that
member.
You get an error if you do:
int main() {
return Refere
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58848
Daniel Krügler changed:
What|Removed |Added
CC||daniel.kruegler@googlemail.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58848
--- Comment #1 from mib.bugzilla at gmail dot com ---
Created attachment 31073
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31073&action=edit
simpler test case gets compilation error (good)
both test cases should get a compilation error bec