Q:

Can I quote GPL code here?

I wish to quote some code that was released under the GNU Public Licence 2 (or at user's desire, a later version) but I am aware that content published here is to be licensed with a (modified?) MIT licence.  Does this mean I cannot reproduce that code here and can only refer users to it with a URL?
It was my intent to indicate how I used the code (which is a C header file) to use the API that it documents so as to interface with the software in the package that it is a part of.
Update: following a detour into the currently Beta Open Source SE area I found:

Is it OK to remove the license terms for a code
snippet?
The Stack Exchange licence: Can I post open source code
here?

which seem to suggest that I would have a problem in reproducing a complete header file on the main site which was my original intention as that would mean I was reproducing GPL material that SE would be attempting to re-license under their terms and as I was not the copyright holder/original creator this is not permitted.  As a UK citizen my position under its Wikipedia Copyright Law entry is merely more confusing especially as it is not clear whether that even applies here!

A:

Possibly the definitive answer to this is to be found on Meta, but rather than dig around I'll make a quick distinction:

"I wish to quote some code..."
"content published here is to be licensed with a (modified?) MIT licence"

These don't refer to the same event.
If I write a paper for publication somewhere and cite someone else's work properly, I am not publishing that other work.  It's already published.  I'm citing it.  In this case, WRT "citing properly", I'm pretty sure the terms of the GPL are such that you can do this and simply include a link to the source, which should contain the licence, acknowledge the author and copyright, and you're okay.  You are not claiming the work as your own and you are not (re)publishing it for re-distribution.
It's not unusual for academics of whatever level (and book authors) to cite GPL'd code and they do not need to get permission to do this any more than they'd need to get permission to cite and analyse any author of any kind of published work.
So your post would be covered by whatever licence Stack Exchange uses -- if there's no original code, that would just be the Creative Commons thing, I guess -- and the code you cite remains covered by the GPL, which allows you to cite it as long as you include a link to the source.
Likewise, although I can't remember seeing an example or discussion of such, I am sure you are free to cite your own GPL'd code on S.O. and ask for help with it whilst saying this is already published under the GPL without worrying someone is going to lay MIT type claims to it. 

A:

In general, under copyright law, you are free to copy portions of material for limited use.  Like a teacher making a limited amount of copies of an article for a class.  Or pulling out segments of code to pass around to this limited audience for comments on those sections.
What you cannot do, even under GPL, is publish the entirety of their work under your own name.  And you certainly cannot sell it as your own work.  
My Answer:  Yes, you can quote segments of code with the purpose of gaining more understanding of how to use it in your own work.

