This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GPL Runtime Exception and C++ Inheritance
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Jeremy Vincent Yu <yujeremyvincent at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 5 Jul 2017 12:23:48 +0100
- Subject: Re: GPL Runtime Exception and C++ Inheritance
- Authentication-results: sourceware.org; auth=none
- References: <044f0518-2763-8689-716e-62aa3e0beda9@gmail.com>
On 5 July 2017 at 02:28, Jeremy Vincent Yu wrote:
> Under the GPL3 runtime exception,am I allowed to subclass parts of the
> standard c++ library(e.g.std::vector) for use in my non-GPL program?What
> about instantiating objects of classes in the standard c++ library(e.g.
> std::string) in my own classes?
>
Nobody on this list is going to give you legal advice, but I will say
that the exception would be useless if you couldn't use std::string in
your own classes, so I consider this a rather silly question.
As the rationale at
https://www.gnu.org/licenses/gcc-exception-3.1-faq.html says:
As long as you use an Eligible Compilation Process, then you have
permission to take the Target Code that GCC generates and propagate it
“under terms of your choice.”